« Bugzilla Issues Index
#4098 — Elison not allowed in ArrayBindingPattern and ArrayAssignmentPattern after RestElement
- bug_id:
4098
- creation_ts:
2015-02-27 09:59:00 -0800
- short_desc:
Elison not allowed in ArrayBindingPattern and ArrayAssignmentPattern after RestElement
- delta_ts:
2015-02-27 11:37:36 -0800
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 34: February 20, 2015 Release Candidate 1
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
INVALID
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Bei Zhang
- assigned_to:
Allen Wirfs-Brock
- commentid:
13419
- comment_count:
0
- who:
Bei Zhang
- bug_when:
2015-02-27 09:59:06 -0800
This will complicate recursive descendant parsing because ArrayBindingPattern and ArrayAssignmentPattern cannot be directly converted from an ArrayLiteral.
- commentid:
13422
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2015-02-27 11:37:36 -0800
Yes, a trailing comma or elision is intentionally not allowed there.
that's not the only difference between between the array pattern grammars and ArrayLiteral and the reason for the first early error condition in 12.14.1
ArrayLiteral just a cover grammar for ArrayAssignmentPattern