[Webkit-unassigned] [Bug 207114] New: \0 identity escapes should be syntax errors in Unicode patterns only
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Feb 3 07:22:22 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=207114
Bug ID: 207114
Summary: \0 identity 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:
new RegExp("\\\0", "u")
Expected:
SyntaxError thrown
Actual:
RegExp instance
ECMA262:
https://tc39.es/ecma262/#prod-annexB-IdentityEscape
(/u flag precludes the use of SourceCharacterIdentityEscape)
IdentityEscape[U, N] ::
[~U] SourceCharacterIdentityEscape[?N]
SourceCharacterIdentityEscape[N] ::
[~N] SourceCharacter but not c
SourceCharacter ::
any Unicode code point
Test262:
https://test262.report/browse/built-ins/RegExp/unicode_restricted_identity_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/20200203/782c1d3b/attachment.htm>
More information about the webkit-unassigned
mailing list