Bug 186749
| Summary: | YARR: Implement support for Annex B section CharacterRangeOrUnion | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Michael Saboff <msaboff> |
| Component: | JavaScriptCore | Assignee: | Michael Saboff <msaboff> |
| Status: | ASSIGNED | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Michael Saboff
YARR currently ignores the ECMAScript Annex B section CharacterRangeOrUnion ( A, B ) (https://tc39.github.io/ecma262/#sec-runtime-semantics-characterrangeorunion-abstract-operation) for the case where Unicode is true. We always create a Union when A and/or B is a Character Set.
The abstract operation CharacterRangeOrUnion takes two CharSet parameters A and B and performs the following steps:
If Unicode is false, then
If A does not contain exactly one character or B does not contain exactly one character, then
Let C be the CharSet containing the single character - U+002D (HYPHEN-MINUS).
Return the union of CharSets A, B and C.
Return CharacterRange(A, B).
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |