• Adam Klein's avatar
    [parser] More carefully handle destructuring in arrow params · f1a55180
    Adam Klein authored
    This patch attempts to reduce the special handling of destructuring
    assignments in arrow function parameters by "adopting" them from
    wherever they were initially parsed into the arrow function's
    FunctionState/Scope. This avoids incorrectly re-setting the
    Scope of such assignments multiple times for arrow functions
    that are nested inside other arrow params themselves.
    
    It also generally seems better, in that we now only rewrite
    destructuring assignments for a single function at a time.
    
    Bug: chromium:807096
    Change-Id: I6bef5613f99e3e8c130fc0aa2ee5d6fcf2efd34b
    Reviewed-on: https://chromium-review.googlesource.com/900168Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
    Reviewed-by: 's avatarCaitlin Potter <caitp@igalia.com>
    Commit-Queue: Adam Klein <adamk@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#51155}
    f1a55180
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
fuzzer Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mkgrokdump Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
bot_default.isolate Loading commit data...
d8_default.isolate Loading commit data...
default.isolate Loading commit data...
optimize_for_size.isolate Loading commit data...
perf.isolate Loading commit data...