Closed
Bug 1055473
Opened 11 years ago
Closed 10 years ago
{WeakSet, WeakMap}.prototype should be an ordinary object
Categories
(Core :: JavaScript: Standard Library, defect)
Core
JavaScript: Standard Library
Tracking
()
RESOLVED
FIXED
mozilla40
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: evilpies, Assigned: evilpies)
References
()
Details
(Keywords: dev-doc-complete)
Attachments
(1 file, 1 obsolete file)
6.38 KB,
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
WeakSet.prototype is just an ordinary object.
Assignee | ||
Updated•11 years ago
|
Summary: WeakSet.prototype should be an object → {WeakSet, WeakMap}.prototype should be an ordinary object
Assignee | ||
Comment 1•11 years ago
|
||
Updated•11 years ago
|
Attachment #8539694 -
Flags: review?(jwalden+bmo) → review+
Assignee | ||
Comment 2•11 years ago
|
||
Apparently there are some tests in dom/ for weakmaps?! https://treeherder.mozilla.org/#/jobs?repo=try&revision=d92ca6857564 The test is not wrong, but we don't yet have WeakMap.prototype.@@toStringTag.
Assignee | ||
Updated•11 years ago
|
Comment 3•10 years ago
|
||
Dup of bug 656828, except:
- 656828 also changes Map and Debugger
- patches in 656828 are most likely out of date.
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8539694 -
Attachment is obsolete: true
Attachment #8600686 -
Flags: review?(jwalden+bmo)
Assignee | ||
Updated•10 years ago
|
Comment 5•10 years ago
|
||
Comment on attachment 8600686 [details] [diff] [review]
Make WeakMap/Set.prototype a plain object
Review of attachment 8600686 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/imptests/failures/html/js/builtins/test_WeakMap.prototype-properties.html.json
@@ +3,5 @@
> "WeakMap.prototype.delete.length": true,
> "WeakMap.prototype.get.length": true,
> "WeakMap.prototype.has.length": true,
> + "WeakMap.prototype.set.length": true,
> + "WeakMap.prototype.@@toStringTag": true
...it's really necessary to *opt IN* to every test you want to run, and not to opt *out* of every test you fail? Sadfaces.
Attachment #8600686 -
Flags: review?(jwalden+bmo) → review+
Assignee | ||
Comment 6•10 years ago
|
||
(In reply to Jeff Walden [:Waldo] (remove +bmo to email) from comment #5)
> Comment on attachment 8600686 [details] [diff] [review]
> Make WeakMap/Set.prototype a plain object
>
> Review of attachment 8600686 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> :::
> dom/imptests/failures/html/js/builtins/test_WeakMap.prototype-properties.
> html.json
> @@ +3,5 @@
> > "WeakMap.prototype.delete.length": true,
> > "WeakMap.prototype.get.length": true,
> > "WeakMap.prototype.has.length": true,
> > + "WeakMap.prototype.set.length": true,
> > + "WeakMap.prototype.@@toStringTag": true
>
> ...it's really necessary to *opt IN* to every test you want to run, and not
> to opt *out* of every test you fail? Sadfaces.
Well actually that's all the tests that are known to fail. I think all of the "length" tests fail, because we changed the property to be configurable. @@toStringTag fails now, because Object.toString.call(WeakMap.prototype) would return "[object WeakMap] if we had @@toStringTag.
Comment 9•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/0536b35fa2fa
https://hg.mozilla.org/mozilla-central/rev/352218aee262
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Assignee | ||
Updated•10 years ago
|
Keywords: dev-doc-needed
Comment 10•10 years ago
|
||
https://developer.mozilla.org/en-US/Firefox/Releases/40
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/prototype
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet/prototype
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•