-
Notifications
You must be signed in to change notification settings - Fork 38
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
Representation of negative integer literals in the v1 format is odd #239
Comments
This kind of sounds like a parser error. Normally, |
yes, it's from parser.
we can apply some filter in |
maybe we could solve this at the same time as #229 ? |
FWIW this is a standard representation of negative numbers in JS parsers, as syntax spec technically doesn't define negative numbers. I agree it can be more efficient in custom formats like BinJS, but it's not really odd. |
Actually disregard the deleted comment, I didn't see that Shift already converts any keys to strings. |
Would anyone be interested in rewriting negative number translation to get rid of such oddities? @vdjeric maybe? |
Unary expression to negate seems very inefficient
The text was updated successfully, but these errors were encountered: