« Bugzilla Issues Index
#1684 — 15.14.1.1, 15.15.1.1: Missing ToObject() calls in {Weak}Map constructor
- bug_id:
1684
- creation_ts:
2013-07-31 06:54:00 -0700
- short_desc:
15.14.1.1, 15.15.1.1: Missing ToObject() calls in {Weak}Map constructor
- delta_ts:
2013-08-23 08:22:13 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 16: July 15, 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:
4660
- comment_count:
0
- who:
André Bargull
- bug_when:
2013-07-31 06:54:26 -0700
15.14.1.1, step 12h and step 12j both call Get() on the nextItem variable, but nextItem can have any value whereas Get() only operates on objects. Therefore add an additional step after 12f to call ToObject():
f. Let nextItem be IteratorValue(next).
g. Let nextItem be ToObject(nextItem).
h. ReturnIfAbrupt(nextItem).
- commentid:
4661
- comment_count:
1
- who:
André Bargull
- bug_when:
2013-07-31 06:57:55 -0700
Also applies to 15.15.1.1 WeakMap constructor
- commentid:
4954
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2013-08-16 16:23:22 -0700
fixed in rev17 editor's draft
- commentid:
5047
- comment_count:
3
- who:
Allen Wirfs-Brock
- bug_when:
2013-08-23 08:22:13 -0700
fixed in rev17, August 23, 2013 draft