Initializer expression on for-in syntax subject

Brendan Eich brendan at mozilla.org
Fri Mar 14 13:53:20 PDT 2014


Andreas Rossberg wrote:
> On 14 March 2014 00:59, Oliver Hunt<oliver at apple.com>  wrote:
>> >  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'd be curious to know what the actual code is, and to get an idea why
> they are using it that way.

http://battlelog.battlefield.com/bf4/
   for (var i = 0 in debug.audio)

I say we should evangelize this site. Cc'ing some awesome Mozilla site 
evangelists.

/be


More information about the es-discuss mailing list