You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function
js: uncaught JavaScript runtime exception: SyntaxError: invalid flag after regular expression
Expected behavior
function
-1
Description
The ES standard does not stipulate a processing method when String.prototype.search has two parameter, but other engines execute normally after ignoring illegal parameters, such as v8, Spider Monkey, and chakra. For rhion, it throw a SyntaxError exception when this happens. Is this a bug about rhino?
The text was updated successfully, but these errors were encountered:
Revision
rhino-1.7.11
Test case
Execution steps
Output
Expected behavior
Description
The ES standard does not stipulate a processing method when String.prototype.search has two parameter, but other engines execute normally after ignoring illegal parameters, such as v8, Spider Monkey, and chakra. For rhion, it throw a SyntaxError exception when this happens. Is this a bug about rhino?
The text was updated successfully, but these errors were encountered: