« Bugzilla Issues Index
#2572 — 23.*: Align internal key checks for keyed collections
- bug_id:
2572
- creation_ts:
2014-03-07 03:20:00 -0800
- short_desc:
23.*: Align internal key checks for keyed collections
- delta_ts:
2014-04-06 11:30:30 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 22: January 20, 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:
7425
- comment_count:
0
- who:
André Bargull
- bug_when:
2014-03-07 03:20:55 -0800
23.1 Map and 23.2 Set:
Map.prototype.{delete, get, has, set} does not check for empty keys. All other Map.prototype, %MapIteratorPrototype%, Set.prototype and %SetIteratorPrototype% methods explicitly check for empty values.
Maybe add empty value checks to Map.prototype.{delete, get, has, set}?
23.3 WeakMap and 23.4 WeakSet:
WeakMap.prototype.{delete, get, has, set} does not check for empty keys and uses prose for object comparison ("p.[[key]] and key are the same object"), whereas WeakSet.prototype explicitly checks for empty values and uses the SameValue() abstract operation.
Maybe add empty value checks to WeakMap.prototype.{delete, get, has, set} and uniformly use SameValue?
- commentid:
7437
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2014-03-18 10:27:20 -0700
fixed in rev23 editor's draft
- commentid:
7563
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2014-04-06 11:30:30 -0700
fixed in rev23 draft