Description[parsing] Fix maybe-assigned flag in some cases.
This CL attempts to set the maybe-assigned flag for variables that are written
to as part of a destructuring or loop header.
For instance, in the following two cases we now mark x as maybe-assigned.
a) [x] = [1];
b) for (x of [1,2,3]) {};
There's more work to do here, this is just a first step.
R=adamk@chromium.org, mstarzinger@chromium.org
BUG=v8:5636
Committed: https://crrev.com/fcb7591520e9a8dc3fd7e535233ab064d6ba044e
Cr-Commit-Position: refs/heads/master@{#41582}
Patch Set 1 #Patch Set 2 : format #Patch Set 3 : rebase #Patch Set 4 : rebase again??? #
Messages
Total messages: 22 (11 generated)
|