On Sep 23, 2013, at 12:05 PM, Oliver Hunt wrote:

> I am reading the spec and it looks (to me at least) like we expect [a,b,c] += 
> [1,2,3] to be equivalent to a+=1; b+=2; c+=3 — is that correct or have i 
> misread something?
> 

No, see http://people.mozilla.org/~jorendorff/es6-draft.html#sec-12.13.2 

Destructuring is only  checked for in the  LHS = RHS case.

The LHS AssignmentOperator RHS case is just like ES5 and doesn't do any 
destructuring.

Allen
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to