(x) => {foo: bar}
Kevin Smith
zenparsing at gmail.com
Tue Jan 6 17:05:21 PST 2015
>
> var fn = () => ({ a, b } = { a: 0, b: 1 });
>
The expression `({ a, b } = { a: 0, b: 1 })` is a destructuring
assignment. If there are lexical bindings for `a` and `b` it will assign
to those. Otherwise, in strict mode it will fail with a ReferenceError.
In sloppy mode, it will assign to the global.
traceur is correct.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150106/27d79850/attachment.html>
More information about the es-discuss
mailing list