Fixed invalid number literal parsing (#473)

* Fixed invalid number literal parsing

* Don't ignore period or E characters after octal numbers
cherry-pick fix from acorn

* Fix tests
This commit is contained in:
Alex Kuzmenko
2017-04-21 16:22:50 +03:00
committed by Daniel Tschinder
parent d1a5220b89
commit 00d6db9fbb
3 changed files with 12 additions and 4 deletions

View File

@@ -0,0 +1 @@
var a = 0123.;

View File

@@ -0,0 +1,3 @@
{
"throws": "Unexpected token (1:13)"
}