Status: Assigned
Owner: [email protected]
CC: [email protected]
Labels: Type-Bug Priority-Medium Harmony
New issue 4403 by [email protected]: Disallow let in BoundNames in a
for-in/of loop
https://code.google.com/p/v8/issues/detail?id=4403
http://www.ecma-international.org/ecma-262/6.0/#sec-for-in-and-for-of-statements-static-semantics-early-errors
It is a Syntax Error if the BoundNames of ForDeclaration contains "let".
This disallows cases like
for (let [let] of []) { }
which means that fixing it properly involves iterating down into the
pattern Expression, not just a comparison.
There is a compatibility risk. Previously, this was valid:
for (let in x) { }
and ES2015 seems to disallow it. Is this a spec bug?
--
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.