archives

« Bugzilla Issues Index

#1439 — 11.13.1: AssignmentRestElement must restrict DestructuringAssignmentTarget to simple assignment targets


Static semantics for AssignmentRestElement should be changed as follows:

> AssignmentRestElement : ... DestructuringAssignmentTarget
>
> It is a SyntaxError if IsValidSimpleAssignmentTarget of DestructuringAssignmentTarget is false

This is needed to prevent destructuring patterns in this position, e.g. `[...[a]] = []` should raise a SyntaxError.


fixed in rev 15 editor's draft


resolved in rev 15, May 14, 2013 draft