Implement the Nullish Coalescing operator (??) proposal
Categories
(Core :: JavaScript Engine, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox72 | --- | fixed |
People
(Reporter: alex.fdm, Assigned: yulia)
References
(Blocks 1 open bug, )
Details
(Keywords: parity-chrome, parity-safari)
Attachments
(8 files, 1 obsolete file)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
The proposal is currently in Stage 2.
Comment 3•5 years ago
|
||
When we document this, we need to be sure to update the article on the optional chaining operator to mention using it to establish a non-undefined return value for missing entries.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining
Safari has been implemented
https://webkit.org/blog/9497/release-notes-for-safari-technology-preview-89/
Reporter | ||
Updated•5 years ago
|
Comment 5•5 years ago
|
||
Can I take this?
Comment 6•5 years ago
|
||
(In reply to Tetsuharu OHZEKI [:tetsuharu] [UTC+9] from comment #5)
Can I take this?
I think Yulia is working on this.
Assignee | ||
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
Assignee | ||
Comment 7•5 years ago
|
||
Fake it till you make it
Assignee | ||
Comment 8•5 years ago
|
||
Depends on D50056
Assignee | ||
Comment 9•5 years ago
|
||
coalescing operator
Depends on D50058
Assignee | ||
Comment 10•5 years ago
|
||
Depends on D50204
Assignee | ||
Updated•5 years ago
|
Comment 11•5 years ago
|
||
Pushed by ystartsev@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/28aa763e7834 Nullish coalesce operator tokens r=jorendorff https://hg.mozilla.org/integration/autoland/rev/48ef03bd0183 Nullish coalesce behavior in bytecode r=jorendorff https://hg.mozilla.org/integration/autoland/rev/a32ff28d5f1b add precedence requirement and disallow mixing of logical operators with nullish r=jorendorff https://hg.mozilla.org/integration/autoland/rev/812b42c51480 Add tests for nullish coalescing r=jorendorff
Comment 12•5 years ago
|
||
We should probably send an intent-to-ship to dev-platform..
Comment 13•5 years ago
|
||
bugherder |
Assignee | ||
Comment 14•5 years ago
|
||
Assignee | ||
Comment 15•5 years ago
|
||
Depends on D51638
Assignee | ||
Comment 16•5 years ago
|
||
Depends on D51639
Updated•5 years ago
|
Assignee | ||
Comment 17•5 years ago
|
||
Depends on D51640
Assignee | ||
Comment 18•5 years ago
|
||
Intent to ship has been sent! (a couple of days ago, forgot to update here)
Updated•5 years ago
|
Assignee | ||
Comment 19•5 years ago
|
||
Comment 20•5 years ago
|
||
Pushed by ystartsev@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9b150dd56999 make interpreter work with JSOP code for coalesce r=jorendorff,jandem https://hg.mozilla.org/integration/autoland/rev/2a8c35575189 make baseline work with JSOP code for coalesce r=jorendorff,jandem https://hg.mozilla.org/integration/autoland/rev/ddc6fa7e24f2 implement nullish coalescence in ion monkey r=jandem
Assignee | ||
Updated•5 years ago
|
Comment 21•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9b150dd56999
https://hg.mozilla.org/mozilla-central/rev/2a8c35575189
https://hg.mozilla.org/mozilla-central/rev/ddc6fa7e24f2
Comment 22•5 years ago
|
||
Pushed by ystartsev@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/14a04a7ccab4 fix fold constants for nullish coalesing r=jorendorff
Comment 23•5 years ago
|
||
bugherder |
Comment 24•5 years ago
|
||
Documentation written here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator
(other pages updated such as: https://wiki.developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining & https://wiki.developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence )
Description
•