> JSC has been trying to kill off the initialiser expression in the for(in)
> statement, but we've encountered a bunch of reasonably significant content
> that breaks with it disallowed (a particularly prominent one currently is
> http://battlelog.battlefield.com/bf4/), so we will be bringing back support
> for
>
> for (var Identifier = Expression in Expression)
I suggested to Oliver that we accept "Identifier = Expression in Expression” as
valid syntax, but drop "= Expression” from the parse tree after the fact. That
way, we can still almost completely remove the construct from the language
without harming web compatibility.
I don’t see much value in making this decision based on strict mode. So far,
we’ve got nothing but trouble from policies like that.
Geoff
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss