-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Const declaration in strict mode #1077
Comments
|
Interesting... |
But why? |
Node.js 0.10 and 0.12 reached EOL.
|
Never knew NPM could install different versions of a module, always thought it installed only the latest version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your libraries all seem to to declare 'use strict' then declare variables (directly afterwards!) with 'const'.
This is causing my server application to crash with this error: "SyntaxError: Use of const in strict mode"
There's also a library or two that use the word "class". Node.JS does not like this and throws an error " reserved word". I don't know if other users are having problems with this, but please create a branch with the problems I listed above fixed (replace 'const' declarations with 'var', or figure out how to not have to use strict mode in your libraries.) I hope this fixes other users' problems along with mine....
The text was updated successfully, but these errors were encountered: