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

fix(babel-parser): chain off optionally chained keys named class and function #11198

Merged
merged 2 commits into from
Mar 3, 2020

Conversation

Vages
Copy link
Contributor

@Vages Vages commented Mar 3, 2020

Q                       A
Fixed Issues? Fixes #11197
Patch: Bug Fix? 👍
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

Added the ability to parse expressions such as those described in #11197. (This may be considered a minor upgrade, but I would not, as it does not extend the current API as much as it restores it to its expected behavior.)

@nicolo-ribaudo nicolo-ribaudo added pkg: parser PR: Bug Fix 🐛 A type of pull request used for our changelog categories Spec: Optional Chaining labels Mar 3, 2020
@nicolo-ribaudo
Copy link
Member

Thanks!

@Vages
Copy link
Contributor Author

Vages commented Mar 3, 2020

The build fails for node 10. It seems to work fine for node 6, 8 and 12. Could any of you maintainers (@nicolo-ribaudo) retry it?

If that does not work, perhaps we should try replacing const override = curContext?.override; with const override = curContext && curContext.override;

@nicolo-ribaudo
Copy link
Member

I restarted it, lets see.

@existentialism
Copy link
Member

Nice work, @Vages!

@nicolo-ribaudo nicolo-ribaudo merged commit 2603c2e into babel:master Mar 3, 2020
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jun 3, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: parser PR: Bug Fix 🐛 A type of pull request used for our changelog categories Spec: Optional Chaining
Projects
None yet
4 participants