DescriptionFix eval calls in initializers of arrow function parameters
This requires copying usage flags from the outer scope to the
arrow scope upon encountering the arrow token.
In order to properly pass-on the calls_eval bit, now record
that bit on script scopes just like everywhere else, and add
necessary code to scopes.cc to handle that change in behavior.
Also factored out scope flag propagation to its own method to
make the call site simple (though note that only the eval
bit makes any difference for arrows).
BUG=v8:4395
LOG=n
Committed: https://crrev.com/0bdaa4d877f0823dbecb08fd9d409c1ebdbc1706
Cr-Commit-Position: refs/heads/master@{#31660}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Rebased #Patch Set 3 : Propagate all flags #Patch Set 4 : Try to fix TF #Patch Set 5 : Propagate fewer flags #Patch Set 6 : Change where we call PropagateFlags #Patch Set 7 : Add one more test for global eval #Patch Set 8 : Add contains_with_ #Patch Set 9 : Fix build #
Total comments: 2
Patch Set 10 : Add comment, rebase #
Messages
Total messages: 20 (4 generated)
|