Closed Bug 1566141 Opened 5 years ago Closed 5 years ago

Implement the Nullish Coalescing operator (??) proposal

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla72
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)

The proposal is currently in Stage 2.

This is being set as a P3 like other Stage 2 proposals

Priority: -- → P3

This proposal has been promoted to Stage 3.

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

Keywords: parity-safari

Can I take this?

(In reply to Tetsuharu OHZEKI [:tetsuharu] [UTC+9] from comment #5)

Can I take this?

I think Yulia is working on this.

Assignee: nobody → ystartsev
Keywords: parity-chrome

Fake it till you make it

Depends on D50056

Depends on D50204

Keywords: leave-open
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

We should probably send an intent-to-ship to dev-platform..

Flags: needinfo?(ystartsev)
Attachment #9106230 - Attachment description: Bug 1566141 - [WIP] implement nullish coalescence in ion monkey → Bug 1566141 - implement nullish coalescence in ion monkey

Depends on D51640

Intent to ship has been sent! (a couple of days ago, forgot to update here)

Flags: needinfo?(ystartsev)
Attachment #9106515 - Attachment is obsolete: true
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
Status: NEW → ASSIGNED
Keywords: leave-open
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
Pushed by ystartsev@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/14a04a7ccab4
fix fold constants for nullish coalesing r=jorendorff
Depends on: 1599163
Regressions: 1667599
No longer regressions: 1667599
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: