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 octal numbers with 8 or 9 as decimal if non-strict #540

Closed
wants to merge 2 commits into from
Closed

Parse octal numbers with 8 or 9 as decimal if non-strict #540

wants to merge 2 commits into from

Conversation

danez
Copy link
Contributor

@danez danez commented Apr 21, 2017

Numbers like 0128 do parse fine in most engines in non strict mode.

Previous discussions:
babel/babylon#420

marijnh pushed a commit that referenced this pull request Apr 23, 2017
FIX: Acorn now follows browsers and implements annex B.1.1, treating
octal numbers with non-octal digits as decimal in non-strict mode.

Issue #540
@marijnh
Copy link
Member

marijnh commented Apr 23, 2017

Sure, we've decided to implement annex compatibility kludges in other cases as well. Merged as 1ecf4f7

@marijnh marijnh closed this Apr 23, 2017
@danez danez deleted the patch-1 branch April 23, 2017 20:59
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 this pull request may close these issues.

3 participants