'var' legal in for..in?

Mark Ethan Trostler mark at zzo.com
Mon Mar 23 15:27:09 UTC 2015


Yes that was it thanks!
  Mark

On Mon, Mar 23, 2015 at 8:24 AM, Brendan Eich <brendan at mozilla.org> wrote:

> You may be thinking of the change to make the var's intiialiser, e.g.,
>
>   for (var x = i in o) ...
>
> illegal in ES6.
>
> /be
>
> Mark Ethan Trostler wrote:
>
>> Howdy,
>>>   Is this legal ES6 syntax:
>>>
>>> for (var x in [ 1,2,3 ] ) { ... }  //?
>>>
>>> Can the 'var' be in there?  There was alleged talk at some point about
>>> making that illegal? Hard to tell from looking at the spec thanks!!
>>>    Mark
>>>
>> _______________________________________________
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> https://mail.mozilla.org/listinfo/es-discuss
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150323/7a38448e/attachment-0001.html>


More information about the es-discuss mailing list