On Tue Jan 06 2015 at 4:53:05 PM Isiah Meadows <[email protected]> wrote:
> Okay: is this a valid statement/expression? I didn't think so, but I may
> be wrong.
>
> ```js
> ({ foo(); bar(); })
> ```
>
That's not valid for any grammar in up to and including ES6.
To make it valid, pick one, but not both:
- Remove the parens and it's valid block syntax.
- Remove everything inside the curlies, except for the word `foo` and it's
valid object literal syntax, containing an identifier reference for some
binding named `foo` (property short hand).
Rick
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss