• 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
..
OWNERS Loading commit data...
background-parsing-task.cc Loading commit data...
background-parsing-task.h Loading commit data...
duplicate-finder.h Loading commit data...
expression-classifier.h Loading commit data...
expression-scope-reparenter.cc Loading commit data...
expression-scope-reparenter.h Loading commit data...
func-name-inferrer.cc Loading commit data...
func-name-inferrer.h 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...
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...
preparsed-scope-data.cc Loading commit data...
preparsed-scope-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...