jazzle icon indicating copy to clipboard operation
jazzle copied to clipboard

Doesn't pare several libraries, and issues with number parsing

Open KFlash opened this issue 7 years ago • 0 comments

I have noticed that this library can't parse TypScript and older editions of ember.js. I consider this a bug and not something that is not yet implemented or something that doesn't fail as it should according to the ECMA specs.

I further noticed a flaw in your numeric literal parsing. You seem to assume that all numbers - decimal, hex, octal, implicit octals etc - fits into 4 bytes.

In your code I see this: value = value * 8 + (codepoint - 0);

If your number length are equal to 10, 11, ... , 100, ... and so on, you will get a wrong result.

// J.K

KFlash avatar Apr 20 '18 23:04 KFlash