DescriptionFix legacy const for-of/in destructuring
Previously, using legacy const in for-of/in loops led to a check-fail
in the parser. This was due to the fact that the destructuring bind
led to an undefined initialization to undefined in the parser, which
caused the for loop code to go down a strange path. This patch
eliminates the undefined initialization in variables declared in
for-in/of loops, so that that path is not used and the error is
fixed.
BUG=v8:4461
LOG=Y
R=adamk
Committed: https://crrev.com/38465598c82ac73ca4dcf3f2855df1ee1709a6d6
Cr-Commit-Position: refs/heads/master@{#31117}
Patch Set 1 #
Total comments: 1
Patch Set 2 : rephrasing suggested by Adam #
Total comments: 1
Messages
Total messages: 16 (5 generated)
|