for-loops and declaration-like init expressions
Claude Pache
claude.pache at gmail.com
Thu Jun 5 14:26:45 PDT 2014
Le 5 juin 2014 à 16:58, Andreas Rossberg <rossberg at google.com> a écrit :
>
> The one caveat is that for function, that would actually be a breaking
> change, but is it likely to be a real world one?
>
Here is a plausible example:
for (function(){ /* ... */ }(); ; )
Today, the initialisation of that for-loop is interpreted as an IIFE. If it has to be interpreted as a declaration, that becomes a syntax error.
—Claude
More information about the es-discuss
mailing list