-
Notifications
You must be signed in to change notification settings - Fork 851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEAT: Implement ??
#1591
FEAT: Implement ??
#1591
Conversation
b6365bc
to
a8d4621
Compare
tests/src/test/java/org/mozilla/javascript/tests/NullishCoalescingOpTest.java
Outdated
Show resolved
Hide resolved
You'll want to uncomment the |
While at it, why not toss in the optional chaining operator 🤪 See #936 and #937 |
still WIP #1593 but I couldn't help myself to give it a try! |
Pipeline fails cause not all tests from |
@rbri I assume you meant ||= and &&= instead of |= and &=, as I think the latter two bitwise operators (which you linked to) are already supported |
#1597 :) |
d90e7a3
to
29f19c1
Compare
Thanks, I've fixed the failing test. |
This looks good to me -- any thoughts from anyone else? One minor question -- the addition of a "NULLISH_COALESCING" token is a name we'll have to live with for a long time. Are we sure that we like that name -- does it match how people talk about this feature elsewhere in the JavaScript world? Or is another name more appropriate. +1 for adding a French translation, BTW! |
Also, if others are OK then please rebase it so that we can merge it. Thanks! |
Thanks. We picked |
Co-authored-by: Greg Caban <[email protected]>
07123b3
to
304e178
Compare
I've rebased it against master. |
Closes #938