Can anyone explain what to expect as a result of the following expression?
var fn = () => ({ a, b } = { a: 0, b: 1 });
1.
var fn = function () {
var a = 0,
b = 1;
return { a: a, b: b };
};
or
2. (traceur-compiler)
var fn = function () {
var tmp;
return (tmp = {a: 0, b: 1}, a = tmp.a, b = tmp.b, tmp);
};
There're global variables in the second case
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

