• adamk's avatar
    Fix handling of escaped "let" and "static" tokens · c04ef1ff
    adamk authored
    The old handling of escaped keywords erroneously treated escaped versions
    of "let" and "static" as ESCAPED_KEYWORD, leading to erroneous errors in
    sloppy mode. Moreover, though the class literal parsing code attempted
    to fix up the parsing of escaped versions of "static" to allow it in the
    right places, that code wasn't complete.
    
    Fixing the scanner to mark escaped "static" as ESCAPED_STRICT_RESERVED_WORD
    allows simplifying the class literal parsing code. A little extra code
    was needed to properly handle the new treatment of escaped "let".
    
    Note that "yield" is still broken (that is, we're overly restrictive of
    escaped "yield" in sloppy mode).
    
    Review URL: https://codereview.chromium.org/1602013007
    
    Cr-Commit-Position: refs/heads/master@{#33396}
    c04ef1ff
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
simdjs Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
webkit Loading commit data...
bot_default.gyp Loading commit data...
bot_default.isolate Loading commit data...
default.gyp Loading commit data...
default.isolate Loading commit data...
ignition.gyp Loading commit data...
ignition.isolate Loading commit data...
optimize_for_size.gyp Loading commit data...
optimize_for_size.isolate Loading commit data...