Title: --use-strict does not work since node 10 · Issue #39996 · nodejs/node · GitHub
Open Graph Title: --use-strict does not work since node 10 · Issue #39996 · nodejs/node
X Title: --use-strict does not work since node 10 · Issue #39996 · nodejs/node
Description: 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? $ cat file.js a = 0; console.log("strict...
Open Graph Description: 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? ...
X Description: 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? ...
Opengraph URL: https://github.com/nodejs/node/issues/39996
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"--use-strict does not work since node 10","articleBody":"### Version\n\nv10.24.1\n\n### Platform\n\nLinux 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\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\n```\r\n$ cat file.js\r\na = 0;\r\nconsole.log(\"strict mode not enabled\");\r\n\r\n$ node --use-strict file.js\r\nstrict mode not enabled\r\n```\n\n### How often does it reproduce? Is there a required condition?\n\nReproduces for latest node releases for versions 10, 12, 14, 16\r\n```\r\nnode/10.24.1\r\nnode/12.22.6\r\nnode/14.17.6\r\nnode/16.8.0\r\n```\r\n\r\nWorks fine for node v8.17.0\n\n### What is the expected behavior?\n\n`ReferenceError: a is not defined` should be thrown\n\n### What do you see instead?\n\nThe file is not run in strict mode.\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/ryanbai1412","@type":"Person","name":"ryanbai1412"},"datePublished":"2021-09-05T04:15:58Z","url":"https://github.com/nodejs/node/issues/39996"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:51b15c66-a75a-9b61-fc9b-c0e7343c1082 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F8E:1E27AA:95BFE4:C8B6CB:6AED2DBE |
| html-safe-nonce | 949cad08360e2888f485e3d00dfc3f2213354581256686a9c51880d7b7f27e57 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjhFOjFFMjdBQTo5NUJGRTQ6QzhCNkNCOjZBRUQyREJFIiwidmlzaXRvcl9pZCI6IjM5MjUyNjY3NDc4NjEzMTUwMDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8d8d85b5156b89793e6602ef6a8c7ee087cdbb4453e48a5ba624aa30cf50b12a |
| hovercard-subject-tag | issue:988419511 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/39996/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ca107bc065e1a0ce84755df0de618b566cd833af4a785bad3428d9430e297ba6/nodejs/node/issues/39996 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ca107bc065e1a0ce84755df0de618b566cd833af4a785bad3428d9430e297ba6/nodejs/node/issues/39996 |
| og:image:alt | 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? ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ryanbai1412 |
| hostname | github.com |
| expected-hostname | github.com |
| None | e51d0b7b5ab34b1688c05b54c3ed17b8658b2fa9bca973a9c740683ccb12cf4a |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 59ebb7b901cc154ecc179a44f266fcf69f343b30 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width