Description[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
Committed: https://crrev.com/62572e011e73da2669be6e724243405e42304d78
Cr-Commit-Position: refs/heads/master@{#29396}
Patch Set 1 : Rebased #Patch Set 2 : Fix rebase merge #
Total comments: 2
Patch Set 3 : Rebased #
Messages
Total messages: 15 (5 generated)
|