DescriptionFix desugaring of let bindings in for loops to handle continue properly
This requires putting the original loop's body inside an inner for loop (with
the same labels as the original loop) and re-binding the temp variables in its
"next" expression. A second flag is added to the desugared code to ensure the
loop body executes at most once per loop.
BUG=v8:3683
LOG=y
Committed: https://chromium.googlesource.com/v8/v8/+/e98e70674690fdfe8f7c23ff666d150eb7283cee
Patch Set 1 #Patch Set 2 : Builds #Patch Set 3 : More fixes, but the desugaring is incorrect #Patch Set 4 : Woops, remove bogus test #Patch Set 5 : Lint #Patch Set 6 : New desugaring comment, not yet implemented #
Total comments: 1
Patch Set 7 : Ready for review #
Total comments: 4
Patch Set 8 : Added tests and comments #Messages
Total messages: 11 (3 generated)
|