-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Object syntax doesn't allow keywords (to, mod, in, etc) as keys #1645
Comments
Thanks for your suggestion Wesley, it would be nice indeed if we could use keywords as object properties. Should be possible I think. |
Problem to me seems that, when assigning the toke type, all EDIT: |
This issue is fixed now in |
Thanks again @Veeloxfire |
math.parse('{from: 5, to: 7}')
fails with:
math.js:46660 Uncaught SyntaxError: Symbol or string expected as object key (char 11)
This fails for all of the keywords in the syntax:
mod, and, not, or, xor, to, in
.Tested version:
6.2.2
.The text was updated successfully, but these errors were encountered: