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

Do not use -1 to mark uninitialized location numeric literals #680

Merged
merged 2 commits into from
Aug 4, 2023

Conversation

nicolo-ribaudo
Copy link
Contributor

In Babel 8 we are going to improve validation in the t.numericLiteral builder to only allow valid numeric literals, and it will start throwing for -1 (since -1 should be represented as an unary expression).

Copy link
Collaborator

@benjamn benjamn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nicolo-ribaudo!

@benjamn benjamn merged commit 01365c4 into facebook:main Aug 4, 2023
5 checks passed
@nicolo-ribaudo nicolo-ribaudo deleted the no-neg-1-numericliteral branch August 4, 2023 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants