Bug 178522
| Summary: | Test262: RegExp/property-escapes/character-class.js fails with current RegExp Unicode Properties implementation | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Michael Saboff <msaboff> |
| Component: | JavaScriptCore | Assignee: | Michael Saboff <msaboff> |
| Status: | ASSIGNED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Other | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Michael Saboff
The test262 test JSTests/test262/test/built-ins/RegExp/property-escapes/character-class.js fails with the current implementation of RegExp Unicode Properties. The failure is:
Exception: Test262Error: Function: /[\p{Hex}-\uFFFF]/u Expected a SyntaxError to be thrown but no exception was thrown at all
The issue is that the test doesn’t allow a built-in property in a character class. JavaScriptCore specifically allows this.
The spec says that this is disallowed for unicode expressions (https://tc39.github.io/ecma262/#sec-runtime-semantics-characterrangeorunion-abstract-operation). We need to make this fix in JSC.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Michael Saboff
<rdar://problem/34865136>