Closed
Bug 1055473
Opened 10 years ago
Closed 9 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: evilpie, Assigned: evilpie)
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•10 years ago
|
Summary: WeakSet.prototype should be an object → {WeakSet, WeakMap}.prototype should be an ordinary object
Assignee | ||
Comment 1•10 years ago
|
||
Updated•10 years ago
|
Attachment #8539694 -
Flags: review?(jwalden+bmo) → review+
Assignee | ||
Comment 2•10 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•10 years ago
|
Comment 3•9 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•9 years ago
|
||
Attachment #8539694 -
Attachment is obsolete: true
Attachment #8600686 -
Flags: review?(jwalden+bmo)
Assignee | ||
Updated•9 years ago
|
Comment 5•9 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•9 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•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/0536b35fa2fa
https://hg.mozilla.org/mozilla-central/rev/352218aee262
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Assignee | ||
Updated•9 years ago
|
Keywords: dev-doc-needed
Comment 10•9 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
•