Bug 186749 - YARR: Implement support for Annex B section CharacterRangeOrUnion
Summary: YARR: Implement support for Annex B section CharacterRangeOrUnion
Status: ASSIGNED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Michael Saboff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-17 08:45 PDT by Michael Saboff
Modified: 2018-06-17 08:45 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Saboff 2018-06-17 08:45:58 PDT
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).