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 123..toString(16) says "Invalid number" #9

Closed
mishoo opened this issue Oct 11, 2012 · 3 comments
Closed

Parse 123..toString(16) says "Invalid number" #9

mishoo opened this issue Oct 11, 2012 · 3 comments

Comments

@mishoo
Copy link
Contributor

mishoo commented Oct 11, 2012

Should parse equivalent to (123).toString(16).

@ariya
Copy link

ariya commented Oct 12, 2012

For a reference on how the syntax tree should look like: http://esprima.org/demo/parse.html?code=123..toString(16).

@hackwaly
Copy link

I've seem that commit only fix .. case.
so, what about 123.+1 and any more? test fail on it.
ref: http://esprima.org/demo/parse.html?code=123.+1

marijnh added a commit that referenced this issue Jan 30, 2013
@marijnh
Copy link
Member

marijnh commented Jan 30, 2013

There was some hair-brained code in readNumber that consumed +/- after a dot.

kossnocorp pushed a commit to kossnocorp/acorn that referenced this issue Jan 16, 2015
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

No branches or pull requests

4 participants