• caitpotter88's avatar
    [parser] only parse async arrow function when necessary · e45fba81
    caitpotter88 authored
    Previously, an async arrow function would be parsed if any valid
    ConditionalExpression began with the identifier "async", and its following token
    was on the same line.
    
    So for example, `async.bar foo => 1` was parsed as a valid async arrow function.
    This patch corrects this behaviour by asserting that the following token is a
    valid arrow parameters start.
    
    BUG=v8:4483
    R=littledan@chromium.org, henrique.ferreiro@gmail.com
    
    Review-Url: https://codereview.chromium.org/2089733002
    Cr-Commit-Position: refs/heads/master@{#37154}
    e45fba81
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...
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...