« Bugzilla Issues Index
#1859 — NOTE in section 15.14.3.4 conflicts with specified algorithm
- bug_id:
1859
- creation_ts:
2013-08-29 10:59:00 -0700
- short_desc:
NOTE in section 15.14.3.4 conflicts with specified algorithm
- delta_ts:
2013-11-08 13:09:01 -0800
- product:
Draft for 6th Edition
- component:
restructure
- version:
Rev 17: August 23, 2013 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Oliver Hunt
- assigned_to:
Allen Wirfs-Brock
- commentid:
5268
- comment_count:
0
- who:
Oliver Hunt
- bug_when:
2013-08-29 10:59:59 -0700
The NOTE in section 15.14.3.4 (Map.prototype.forEach) states that the same key is not visited multiple times, however the algorithm as specified leads to this behavior if a key is deleted and then re-added.
I believe that the algorithm text is correct - I'm unsure the NOTE is even required as set() is defined explicitly as not changing the iteration order, nor moving the entry in the MapData's list.
- commentid:
6179
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2013-10-29 11:15:02 -0700
fixed in rev 21 editor's draft
deleted the note
- commentid:
6538
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2013-11-08 13:09:01 -0800
fixed in rev21 draft