A bill that would prohibit the use of the so-called gay panic defense in criminal cases, where a defendant claims provocation by sudden knowledge of the victim’s sexual orientation or gender, is working its way through the New Jersey Legislature.

The measure was passed unanimously by the state Assembly Monday and now moves to the Senate for consideration.