What is

   ({
     get
     x()
     {
       return 42;
     }
   })

?

Could it match both as an object literal with a getter

   ({ get x() { return 42; } })

or as a block with 3 statements?

   ({ get; x(); { return 42; } })


2011/7/1 Brendan Eich <[email protected]>:
> On Jun 30, 2011, at 9:46 PM, Brendan Eich wrote:
>
>> Oops -- thanks. I will fix in a strawman that captures all of this.
>
> Done:
>
> http://wiki.ecmascript.org/doku.php?id=strawman:block_vs_object_literal
>
> /be
>
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to