Comment #5 on issue 4210 by [email protected]: TDZ is not enforced in for-in/of loop expression
https://code.google.com/p/v8/issues/detail?id=4210#c5

The following revision refers to this bug:
https://chromium.googlesource.com/v8/v8.git/+/62572e011e73da2669be6e724243405e42304d78

commit 62572e011e73da2669be6e724243405e42304d78
Author: adamk <[email protected]>
Date: Wed Jul 01 00:27:15 2015

[es6] Ensure that for-in/of loops have a proper TDZ for their lexically-bound variables

The enumerable expression in a for-in/of loop is supposed to have a TDZ for any lexically bound names in that loop (there can be more than one with destructuring).

This patch accomplishes this with an almost-correct desugaring. The only thing missing is proper debugger support (the let declarations added by the desugaring, while invisible
to code due to shadowing, are visible to the debugger).

BUG=v8:4210
LOG=n

Review URL: https://codereview.chromium.org/1218543003

Cr-Commit-Position: refs/heads/master@{#29396}

[modify] http://crrev.com/62572e011e73da2669be6e724243405e42304d78/src/parser.cc [modify] http://crrev.com/62572e011e73da2669be6e724243405e42304d78/test/mjsunit/es6/debug-blockscopes.js [modify] http://crrev.com/62572e011e73da2669be6e724243405e42304d78/test/mjsunit/es6/debug-stepnext-for.js [modify] http://crrev.com/62572e011e73da2669be6e724243405e42304d78/test/mjsunit/es6/regress/regress-2506.js [modify] http://crrev.com/62572e011e73da2669be6e724243405e42304d78/test/mjsunit/harmony/destructuring.js [modify] http://crrev.com/62572e011e73da2669be6e724243405e42304d78/test/mjsunit/strong/declaration-after-use.js [modify] http://crrev.com/62572e011e73da2669be6e724243405e42304d78/test/test262-es6/test262-es6.status


--
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.

Reply via email to