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
When using the RegExp constructor to create a regular expression with the u flag, if the pattern contains an octal escape sequence , the engine does not raise a SyntaxError according to the specification, but silently returns an invalid regular expression object. This behavior violates the ECMAScript standard.
Proof of concept
print(RegExp('[\\03]','u'));
Exception or Error
/[\03]/u
Additional Context
The expected output should throw "SyntaxError".
The text was updated successfully, but these errors were encountered:
ChakraCore Version
36becec
Steps to reproduce
When using the
RegExp
constructor to create a regular expression with theu
flag, if the pattern contains an octal escape sequence , the engine does not raise aSyntaxError
according to the specification, but silently returns an invalid regular expression object. This behavior violates the ECMAScript standard.Proof of concept
Exception or Error
Additional Context
The expected output should throw "SyntaxError".
The text was updated successfully, but these errors were encountered: