Allen Wirfs-Brock (2013-09-24T18:58:38.000Z)
On Sep 24, 2013, at 11:46 AM, Oliver Hunt wrote:

> I'll try to rephrase:
> 
> As I read the spec this is not a syntax error, and so gets delayed to runtime.  Given that we're already doing work to determine whether we should be destructuring (which results in different runtime semantics), it seems we should promote (demote?) <deconstructing lhs> <rwm operator> <expression> to a syntax error -- it seems like it would be an easy typo to make so detecting it earlier would seem a plus.

It is an early error, which is specified via the "IsValidSinpleAssigment" based Early Error rules in http://people.mozilla.org/~jorendorff/es6-draft.html#sec-12.13.1 

This follows from the ES5 requirement in clause 16: that says "Attempts to PutValue on any value for which early determination can be made that the value is not a Reference" [is an early error].

IsValidSimpleAssignmentTarget is a formalization of that "early determination".

Allen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130924/848c9023/attachment-0001.html>
domenic at domenicdenicola.com (2013-09-25T18:48:38.686Z)
It is an early error, which is specified via the "IsValidSinpleAssigment" based Early Error rules in http://people.mozilla.org/~jorendorff/es6-draft.html#sec-12.13.1 

This follows from the ES5 requirement in clause 16: that says "Attempts to PutValue on any value for which early determination can be made that the value is not a Reference" [is an early error].

IsValidSimpleAssignmentTarget is a formalization of that "early determination".