Description[parser] only parse async arrow function when necessary
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
Committed: https://crrev.com/e45fba811fbf15751c3464c0d3973f6f8ee5c934
Cr-Commit-Position: refs/heads/master@{#37154}
Patch Set 1 #
Messages
Total messages: 9 (4 generated)
|