Supreme Court Justice Ruth Bader Ginsburg says she and now-retired colleague Sandra Day O’Connor were the targets of an Internet death threat last year because of their citation of foreign law in decisions.

In a speech last month at the Constitutional Court of South Africa, Ginsburg suggested the threat was prompted by bills introduced by Republicans in Congress that would prohibit federal courts from referring to foreign laws or rulings in interpreting the U.S. Constitution.