• 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
..
OWNERS Loading commit data...
expression-classifier.h Loading commit data...
func-name-inferrer.cc Loading commit data...
func-name-inferrer.h Loading commit data...
json-parser.h Loading commit data...
parameter-initializer-rewriter.cc Loading commit data...
parameter-initializer-rewriter.h Loading commit data...
parser-base.h Loading commit data...
parser.cc Loading commit data...
parser.h Loading commit data...
pattern-rewriter.cc Loading commit data...
preparse-data-format.h Loading commit data...
preparse-data.cc Loading commit data...
preparse-data.h Loading commit data...
preparser.cc Loading commit data...
preparser.h Loading commit data...
rewriter.cc Loading commit data...
rewriter.h Loading commit data...
scanner-character-streams.cc Loading commit data...
scanner-character-streams.h Loading commit data...
scanner.cc Loading commit data...
scanner.h Loading commit data...
token.cc Loading commit data...
token.h Loading commit data...