Comment #21 on issue 3683 by [email protected]: C-style for-let can't
handle continue
https://code.google.com/p/v8/issues/detail?id=3683#c21
The following revision refers to this bug:
https://chromium.googlesource.com/v8/v8.git/+/b17eaaa5755e625493c5fe537f42b58838923c52
commit b17eaaa5755e625493c5fe537f42b58838923c52
Author: adamk <[email protected]>
Date: Fri Nov 14 19:32:53 2014
Fix 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
Review URL: https://codereview.chromium.org/720863002
Cr-Commit-Position: refs/heads/master@{#25363}
[modify]
https://chromium.googlesource.com/v8/v8.git/+/b17eaaa5755e625493c5fe537f42b58838923c52/src/parser.cc
[add]
https://chromium.googlesource.com/v8/v8.git/+/b17eaaa5755e625493c5fe537f42b58838923c52/test/mjsunit/harmony/regress/regress-3683.js
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.