Skip to content
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

Support nullish coalescing #3544

Closed
domoritz opened this issue May 9, 2020 · 2 comments · Fixed by #3548
Closed

Support nullish coalescing #3544

domoritz opened this issue May 9, 2020 · 2 comments · Fixed by #3548

Comments

@domoritz
Copy link

domoritz commented May 9, 2020

Feature Use Case

I would like to use nullish coalescing documented at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator.

Feature Proposal

export const c = a ?? b;

Should compile to

const c = a ?? b;

export { c };

Related issue: #3469

@lukastaegert
Copy link
Member

Apparently, nullish coalescing has already been merged upstream and is just waiting to be released. For a month now 🙄 acornjs/acorn#890

But I guess we could switch to a direct Github build of acorn until then.

@hardfist
Copy link

hardfist commented May 9, 2020

@lukastaegert It seems that acorn nullish coalescing coalescing has released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants