• Wiktor Garbacz's avatar
    [parse tasks] Fix arrow function parameters handling. · 9a572e1d
    Wiktor Garbacz authored
    Formal parameters of an arrow function are parsed even if the function
    itself is preparsed. It is because we don't know if it is an arrow
    function parameter list or just comma separated expression list.
    When we parse:
     (a, b = (function c() { return a; })())
    call to function c may be just part of an assignment in an expression
    list, but if it's followed by:
     => { return b; }
    It is an arrow function and the call to c is a default parameter.
    Before we see the arrow we might have already created a parse task
    to parse function c.
    
    BUG=v8:6093
    
    Change-Id: I59a59acfdbbfd808dab1518060748be2addcd54a
    Reviewed-on: https://chromium-review.googlesource.com/493347
    Commit-Queue: Wiktor Garbacz <wiktorg@google.com>
    Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
    Reviewed-by: 's avatarDaniel Vogelheim <vogelheim@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#45132}
    9a572e1d
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
docs Loading commit data...
gni Loading commit data...
gypfiles Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...