« Bugzilla Issues Index
#1157 — 15.14.5.2: Map.prototype.clear interacts badly with Map.prototype.forEach
- bug_id:
1157
- creation_ts:
2012-12-19 09:59:00 -0800
- short_desc:
15.14.5.2: Map.prototype.clear interacts badly with Map.prototype.forEach
- delta_ts:
2013-03-08 14:44:26 -0800
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 12: November 22, 2012 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:
3050
- comment_count:
0
- who:
André Bargull
- bug_when:
2012-12-19 09:59:51 -0800
Map.prototype.clear sets the value of the [[MapData]] internal data property to a new empty list, but Map.prototype.forEach retains a local copy of the [[MapData]]'s value. That means forEach() will visit removed entries when clear() is called in the meantime.
- commentid:
3298
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2013-03-06 18:30:53 -0800
fixed in rev 14 editor's draft
also fixed for Set.prototype.clear
- commentid:
3368
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2013-03-08 14:44:26 -0800
in Rev 14 draft