« Bugzilla Issues Index
#2736 — 22.1.5.2.1 %ArrayIteratorPrototype%.next: Align result object creation with Map/LoaderIterator
- bug_id:
2736
- creation_ts:
2014-04-25 03:14:00 -0700
- short_desc:
22.1.5.2.1 %ArrayIteratorPrototype%.next: Align result object creation with Map/LoaderIterator
- delta_ts:
2014-06-12 15:38:27 -0700
- product:
Draft for 6th Edition
- component:
editorial issue
- version:
Rev 23: April 5, 2014 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
André Bargull
- assigned_to:
Allen Wirfs-Brock
- commentid:
7919
- comment_count:
0
- who:
André Bargull
- bug_when:
2014-04-25 03:14:09 -0700
22.1.5.2.1 %ArrayIteratorPrototype%.next(), steps 14-17:
The final steps in 22.1.5.2.1 could be slightly changed to follow the same structure as in [Map,Loader]IteratorPrototype.next().
---
14. If itemKind is "key" then, let result be index.
15. Else if itemKind is "value", then let result be elementValue.
16. Else
a. Assert: itemKind is "key+value".
b. Let result be ArrayCreate(2).
c. Assert: result is a new, well-formed Array object so the following operations will never fail.
d. Call CreateDataProperty(result, "0", index).
e. Call CreateDataProperty(result, "1", elementValue).
17. Return CreateIterResultObject(result, false).
---
- commentid:
8269
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2014-05-09 12:51:51 -0700
fixed in rev25 editor's draft
- commentid:
8931
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2014-06-12 15:38:27 -0700
in rev25