mozilla/rhino — pull request #17 by msmhrt (2011-10-29 02:51:12+00:00)
Title: Fixed issue with /[\u0000]/ doesn't match to string "\u0000"

The regex /[\u0000]/ should match to string "\u0000" , but it does not match.
I believe this patch can fix this issue.

without this patch:

js> escape("\u0000".match(/[\u0000]/))
null

with this patch:

js> escape("\u0000".match(/[\u0000]/))
%00