• Toon Verwaest's avatar
    [parser] Fix escaped contextual keyword handling · a94c91ca
    Toon Verwaest authored
    Escaped contextual keywords are simply valid identifiers if they do not occur
    in the context where they are a keyword. Escape sequences of the form \uNNNN
    or \u{NNNNNN} must be consumed as part of the identifier.
    
    If such escaped contextual keywords do occur in a context where they are a
    keyword, they are a syntax error. In that case we manually check locally
    whether they are escaped.
    
    Bug: v8:6543, v8:6541
    
    Change-Id: I7e1557963883e722310b9078d7d7636ec94aa603
    Reviewed-on: https://chromium-review.googlesource.com/c/1473293Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
    Commit-Queue: Toon Verwaest <verwaest@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#59628}
    a94c91ca
Name
Last commit
Last update
..
OWNERS Loading commit data...
expression-scope-reparenter.cc Loading commit data...
expression-scope-reparenter.h Loading commit data...
expression-scope.h Loading commit data...
func-name-inferrer.cc Loading commit data...
func-name-inferrer.h Loading commit data...
keywords-gen.h Loading commit data...
keywords.txt Loading commit data...
parse-info.cc Loading commit data...
parse-info.h Loading commit data...
parser-base.h Loading commit data...
parser.cc Loading commit data...
parser.h Loading commit data...
parsing.cc Loading commit data...
parsing.h Loading commit data...
preparse-data-impl.h Loading commit data...
preparse-data.cc Loading commit data...
preparse-data.h Loading commit data...
preparser-logger.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-inl.h Loading commit data...
scanner.cc Loading commit data...
scanner.h Loading commit data...
token.cc Loading commit data...
token.h Loading commit data...