• bmeurer's avatar
    [es6] Correct parsing of regular expression literal flags. · 2732a6ad
    bmeurer authored
    ES6 section 12.2.8.1 states that flags for regular expression literals
    must be checked during parsing and invalid flags are early errors. This
    change adapts the Scanner and (Pre)Parser to act according to the spec.
    
    This is also a prerequisite to unify the handling of literal creation
    (for Objects, Arrays, Regexps, and at some point Classes).
    
    R=yangguo@chromium.org
    
    Review URL: https://codereview.chromium.org/1472323002
    
    Cr-Commit-Position: refs/heads/master@{#32273}
    2732a6ad
Name
Last commit
Last update
..
alternative-length-miscalculation-expected.txt Loading commit data...
alternative-length-miscalculation.js Loading commit data...
assertion-expected.txt Loading commit data...
assertion.js Loading commit data...
constructor-expected.txt Loading commit data...
constructor.js Loading commit data...
dotstar-expected.txt Loading commit data...
dotstar.js Loading commit data...
early-acid3-86-expected.txt Loading commit data...
early-acid3-86.js Loading commit data...
ecma-regex-examples-expected.txt Loading commit data...
ecma-regex-examples.js Loading commit data...
invalid-range-in-class-expected.txt Loading commit data...
invalid-range-in-class.js Loading commit data...
lastIndex-expected.txt Loading commit data...
lastIndex.js Loading commit data...
malformed-escapes-expected.txt Loading commit data...
malformed-escapes.js Loading commit data...
non-capturing-backtracking-expected.txt Loading commit data...
non-capturing-backtracking.js Loading commit data...
overflow-expected.txt Loading commit data...
overflow.js Loading commit data...
parentheses-expected.txt Loading commit data...
parentheses.js Loading commit data...
pcre-test-4-expected.txt Loading commit data...
pcre-test-4.js Loading commit data...
quantified-assertions-expected.txt Loading commit data...
quantified-assertions.js Loading commit data...
repeat-match-waldemar-expected.txt Loading commit data...
repeat-match-waldemar.js Loading commit data...
toString-expected.txt Loading commit data...
toString.js Loading commit data...
unicodeCaseInsensitive-expected.txt Loading commit data...
unicodeCaseInsensitive.js Loading commit data...