« Bugzilla Issues Index
#1439 — 11.13.1: AssignmentRestElement must restrict DestructuringAssignmentTarget to simple assignment targets
- bug_id:
1439
- creation_ts:
2013-04-12 02:52:00 -0700
- short_desc:
11.13.1: AssignmentRestElement must restrict DestructuringAssignmentTarget to simple assignment targets
- delta_ts:
2013-05-14 18:12:55 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 14: March 8, 2013 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
normal
- everconfirmed:
true
- reporter:
André Bargull
- assigned_to:
Allen Wirfs-Brock
- commentid:
3639
- comment_count:
0
- who:
André Bargull
- bug_when:
2013-04-12 02:52:41 -0700
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.
- commentid:
3661
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2013-04-19 14:44:38 -0700
fixed in rev 15 editor's draft
- commentid:
3854
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2013-05-14 18:12:55 -0700
resolved in rev 15, May 14, 2013 draft