Bug 256903
| Summary: | [JSC] /\p{Number}--]/v; should be a syntax error | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Michael Saboff <msaboff> |
| Component: | JavaScriptCore | Assignee: | Michael Saboff <msaboff> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Local Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Michael Saboff
this regular expression should throw a syntax error:
/[\p{Number}--]/v
Steps To Reproduce:
jsc -e "/[\\p{Number}--]/v;"
Results:
JavaScriptCore accepts it.
V8 says:
unnamed:1: SyntaxError: Invalid regular expression: /[\p{Number}--]/v: Invalid character in character class
/[\p{Number}--]/v;
^^^^^^^^^^^^^^^^^
SyntaxError: Invalid regular expression: /[\p{Number}--]/v: Invalid character in character class
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Michael Saboff
<rdar://109400589>
Michael Saboff
Pull request: https://github.com/WebKit/WebKit/pull/13971
EWS
Committed 264175@main (84d5c4d59cd7): <https://commits.webkit.org/264175@main>
Reviewed commits have been landed. Closing PR #13971 and removing active labels.