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

Crimp is unable to parse 'const' variable (or other ES2015 or later) declarations #1

Open
basperheim opened this issue Mar 17, 2021 · 1 comment

Comments

@basperheim
Copy link

I'm not allowed to use const variable declarations for some reason:

Unexpected 'const' at 283:1 after ';' at 1:13
@metatoaster
Copy link
Member

metatoaster commented Apr 18, 2021

The const keyword was never introduced in the ES5 specification as it is first introduced in the specification ECMAScript 2015 Edition (ES6). Since the underlying calmjs.parse library has no support for ES6 and above as of now and crimp was only provided as a helper replacement for slimit (which also don't have ES2015 (ES6) support), this would be an open issue until ES2015 (ES6) support is added. ES2015 support is tracked via calmjs/calmjs.parse#15.

@metatoaster metatoaster changed the title Crimp is unable to parse 'const' variable declarations Crimp is unable to parse 'const' variable (or other ES2015 or later) declarations Apr 18, 2021
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

2 participants