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

Parse non-octals with leading zeros in non strict mode correctly #9114

Merged
merged 2 commits into from Dec 3, 2018

Conversation

danez
Copy link
Member

@danez danez commented Dec 2, 2018

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

Floating point numbers which start with a 0 like 09.5 were treated incorrectly and errored even though it should work in non-strict mode.

@danez danez added PR: Bug Fix 🐛 A type of pull request used for our changelog categories pkg: parser labels Dec 2, 2018
@babel-bot
Copy link
Collaborator

babel-bot commented Dec 2, 2018

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/9517/

@nicolo-ribaudo
Copy link
Member

Legacy in the error message is needed, because 0o literals ("modern") are allowed

@danez danez merged commit 3932830 into master Dec 3, 2018
@danez danez deleted the fix-octals branch December 3, 2018 08:04
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 4, 2019
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants