Closed
Bug 814965
Opened 12 years ago
Closed 9 years ago
WeakMap's GetKeyArg should use ToObject
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
INVALID
People
(Reporter: Ms2ger, Unassigned)
Details
The spec states > Let k be ToObject(key). > > ReturnIfAbrupt(k). <http://people.mozilla.org/~jorendorff/es6-draft.html#sec-15.15.5> whereas we throw for any primitive value.
Reporter | ||
Comment 1•12 years ago
|
||
It seems like rev 12 changes this to throw when !key.isObject(), but only in set(). All others seem to silently ignore the argument instead.
Comment 2•12 years ago
|
||
Sounds like a spec bug to me.
Assignee | ||
Updated•10 years ago
|
Assignee: general → nobody
Comment 3•9 years ago
|
||
ToObject(key) was a spec bug; WeakMap implementation was updated to conform to the latest spec draft in bug 1127827. Resolving as invalid.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•