IsValidSimpleAssignmentTarget equivalent for delete?

Alan Schmitt alan.schmitt at
Wed Jul 29 17:28:35 UTC 2015


ES6 introduces IsValidSimpleAssignmentTarget to make an early error the
attempt to assign to something that is obviously not a reference. For

#+begin_src javascript
((function () { throw 42 })()) = 3;

is now a syntax error.

Is there a reason why the same does not apply to the delete operator,
such as in the following ?

#+begin_src javascript
delete ((function () { throw 42 })())



OpenPGP Key ID : 040D0A3B4ED2E5C7
Last week athmospheric CO₂ average (Updated July 26, 2015, Mauna Loa Obs.):
401.25 ppm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 472 bytes
Desc: not available
URL: <>

More information about the es-discuss mailing list