Comment #4 on issue 2560 by [email protected]: let binding should be created fresh for every loop iteration
http://code.google.com/p/v8/issues/detail?id=2560

I believe Chakra and V8 are implementing what is currently spec'd unless I'm interpreting it incorrectly. The latest draft says[1] a single lexical environment is created for the loop body and that environment is reused with each iteration. Allen has a note in the Word version[2] that suggests there hasn't been a final decision on scoping semantics for for-let loops, though I suspect a change would be pretty difficult at this point...

Thanks for the heads up!

- Brian Terlson
(From Chakra Team)

1. https://people.mozilla.org/~jorendorff/es6-draft.html#sec-for-statement-runtime-semantics-labelledevaluation 2. http://wiki.ecmascript.org/lib/exe/fetch.php?id=harmony%3Aspecification_drafts&cache=cache&media=harmony:working_draft_ecma-262_edition_6_10-28-13.doc

--
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/groups/opt_out.

Reply via email to