{Spam?} Re: (x) => {foo: bar}
Isiah Meadows
impinball at gmail.com
Tue Jan 6 15:45:15 PST 2015
That's what I thought. Didn't think I had gone crazy there.
On Jan 6, 2015 5:45 PM, "Brendan Eich" <brendan at mozilla.org> wrote:
> Isiah Meadows wrote:
>
>>
>> Okay: is this a valid statement/expression? I didn't think so, but I may
>> be wrong.
>>
>> ```js
>> ({ foo(); bar(); })
>> ```
>>
>>
> It's a syntax error, in any JS repl or standard.
>
> The Node repl only removes parens if it tries adding them first around
> braced input and that fails.
>
> /be
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150106/d75c3388/attachment.html>
More information about the es-discuss
mailing list