Ship upsert proposal
Categories
(Core :: JavaScript: Standard Library, task, P3)
Tracking
()
People
(Reporter: dminor, Assigned: dminor)
References
Details
(Keywords: dev-doc-complete)
Attachments
(4 files)
Now that Upsert is at Stage 3, we can look at shipping it.
Updated•7 months ago
|
| Assignee | ||
Comment 1•6 months ago
|
||
| Assignee | ||
Comment 2•6 months ago
|
||
| Assignee | ||
Comment 3•6 months ago
|
||
Comment 6•6 months ago
|
||
Backed out for failures on not-a-constructor.js
Backout link: https://hg-edge.mozilla.org/integration/autoland/rev/ed67d7ac2721426aff5beb8bc6eaf17fa21b4d61
Log link: https://treeherder.mozilla.org/logviewer?job_id=526362532&repo=autoland&task=OSyEumt5RsqMwDRq-yoLIg.0&lineNumber=5042
| Assignee | ||
Comment 7•6 months ago
|
||
These tests are now all present in test262 and can be safely removed.
| Assignee | ||
Updated•6 months ago
|
Comment 9•6 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/a2bc4078c981
https://hg.mozilla.org/mozilla-central/rev/852d7663fa6e
https://hg.mozilla.org/mozilla-central/rev/4f8004dd67bd
https://hg.mozilla.org/mozilla-central/rev/c927c988762b
Comment 10•6 months ago
|
||
:dminor, could you consider nominating this for a release note? (Process info)
| Assignee | ||
Comment 11•6 months ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: This adds new getOrInsert and getOrInsertComputed methods to Map and WeakMap.
[Affects Firefox for Android]: Yes.
[Suggested wording]: Support for the upsert proposal shipped in Firefox 144. This adds getOrInsert and getOrInsertComputed methods to Map and WeakMap. These methods either return the value associated with a key, or insert a default value, and then return that value, simplifying handling of cases where it's not known if a key is already present in the Map or WeakMap or not.
[Links (documentation, blog post, etc)]: https://github.com/tc39/proposal-upsert
Comment 12•6 months ago
|
||
Thanks, added to the Fx144 nightly release notes, please allow 30 minutes for the site to update.
Keeping the relnote-firefox flag as ? to keep it on the radar for inclusion in the final Fx144 release notes.
Updated•5 months ago
|
Comment 13•5 months ago
|
||
FF144 MDN work for this can be tracked in https://github.com/mdn/content/issues/41134
Updated•5 months ago
|
Description
•