[Webkit-unassigned] [Bug 207091] New: Non-alphabetical \c escapes should be syntax errors in Unicode patterns only
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Feb 1 05:58:23 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=207091
Bug ID: 207091
Summary: Non-alphabetical \c escapes should be syntax errors in
Unicode patterns only
Product: WebKit
Version: WebKit Nightly Build
Hardware: All
OS: All
Status: NEW
Severity: Trivial
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: shvaikalesh at gmail.com
Test case:
/\c2/u
Expected:
SyntaxError thrown
Actual:
RegExp instance
ECMA262:
https://tc39.es/ecma262/#prod-annexB-ClassEscape (/u flag precludes the use of ClassControlLetter)
ClassEscape[U, N] ::
[~U] c ClassControlLetter
ClassControlLetter ::
DecimalDigit
_
Test262:
https://test262.report/browse/built-ins/RegExp/unicode_restricted_identity_escape_c.js
https://test262.report/browse/language/literals/regexp/u-invalid-class-escape.js
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200201/5a2b05e9/attachment-0001.htm>
More information about the webkit-unassigned
mailing list