We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v10.24.1
Linux LAPTOP 5.11.0-27-generic #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
No response
$ cat file.js a = 0; console.log("strict mode not enabled"); $ node --use-strict file.js strict mode not enabled
Reproduces for latest node releases for versions 10, 12, 14, 16
node/10.24.1 node/12.22.6 node/14.17.6 node/16.8.0
Works fine for node v8.17.0
ReferenceError: a is not defined should be thrown
ReferenceError: a is not defined
The file is not run in strict mode.
The text was updated successfully, but these errors were encountered:
Duplicate of #30039.
Sorry, something went wrong.
No branches or pull requests
Version
v10.24.1
Platform
Linux LAPTOP 5.11.0-27-generic #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Reproduces for latest node releases for versions 10, 12, 14, 16
Works fine for node v8.17.0
What is the expected behavior?
ReferenceError: a is not defined
should be thrownWhat do you see instead?
The file is not run in strict mode.
Additional information
No response
The text was updated successfully, but these errors were encountered: