(x) => {foo: bar}

Mark Volkmann r.mark.volkmann at gmail.com
Mon Jan 5 13:07:52 PST 2015

My apologies. I meant to say that Traceur doesn't support returning a
literal object from an arrow function with syntax like this:

let f = x => ({foo: bar});

However, I just tested it again and it works fine. I could swear this
didn't work a few months ago. Maybe it was fixed recently. I'm happy!

On Mon, Jan 5, 2015 at 2:48 PM, Mark Volkmann <r.mark.volkmann at gmail.com>

> In addition, I don't think Traceur supports that syntax yet. I have had to
> do this instead:
> let f = x => {
>   return {foo: bar};
> };
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150105/e300f114/attachment.html>

More information about the es-discuss mailing list