« Bugzilla Issues Index
#4474 — 12.2.5.2 ArrayAccumulation, 12.2.5.3 Evaluation: Inconsistent use of ToUint32
- bug_id:
4474
- creation_ts:
2015-08-21 14:08:00 -0700
- short_desc:
12.2.5.2 ArrayAccumulation, 12.2.5.3 Evaluation: Inconsistent use of ToUint32
- delta_ts:
2015-11-03 12:03:43 -0800
- product:
ECMA-262 Edition 6
- component:
technical issues
- version:
unspecified
- 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
- cc:
brterlso
- commentid:
14634
- comment_count:
0
- who:
André Bargull
- bug_when:
2015-08-21 14:08:46 -0700
12.2.5.2 Runtime Semantics: ArrayAccumulation
12.2.5.3 Runtime Semantics: Evaluation
ToUint32 is used in
- 12.2.5.2, ElementList : Elision opt AssignmentExpression
- 12.2.5.2, ElementList : ElementList , Elisionopt AssignmentExpression
- 12.2.5.3, ArrayLiteral : [ ElementList , Elisionopt ]
ToUint32 is not used in
- 12.2.5.2, SpreadElement : ... AssignmentExpression
- 12.2.5.3, ArrayLiteral : [ Elisionopt ]
- 12.2.5.3, ArrayLiteral : [ ElementList ]
ToUint32 should either be used always or not at all.
Side note: The note in 12.2.5.3, "ArrayLiteral : [ Elisionopt ]", step 4 is actually incorrect if ElisionWidth exceeds 2^32-1.
- commentid:
14894
- comment_count:
1
- who:
Brian Terlson
- bug_when:
2015-11-03 12:03:43 -0800
Fixed in ES2016 Draft (8e82cfb).