Title: --use-strict flag doesn't apply strict mode to script · Issue #30039 · nodejs/node · GitHub
Open Graph Title: --use-strict flag doesn't apply strict mode to script · Issue #30039 · nodejs/node
X Title: --use-strict flag doesn't apply strict mode to script · Issue #30039 · nodejs/node
Description: Node 12.*: Windows 64bit, Debian 64bit: The --use-strict flag doesn't apply strict mode to script. reproduction: echo a = 1 > test.js && node --use-strict test expected behavior: ReferenceError: a is not defined is thrown. behavior: scri...
Open Graph Description: Node 12.*: Windows 64bit, Debian 64bit: The --use-strict flag doesn't apply strict mode to script. reproduction: echo a = 1 > test.js && node --use-strict test expected behavior: ReferenceError: a ...
X Description: Node 12.*: Windows 64bit, Debian 64bit: The --use-strict flag doesn't apply strict mode to script. reproduction: echo a = 1 > test.js && node --use-strict test expected behavior: Ref...
Opengraph URL: https://github.com/nodejs/node/issues/30039
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"--use-strict flag doesn't apply strict mode to script","articleBody":"* Node 12.*:\r\n* Windows 64bit, Debian 64bit:\r\n\r\nThe `--use-strict` flag doesn't apply strict mode to script.\r\nreproduction:\r\n```\r\necho a = 1 > test.js && node --use-strict test\r\n```\r\nexpected behavior:\r\n `ReferenceError: a is not defined` is thrown.\r\nbehavior:\r\n script executes without any issue.\r\n\r\nhowever it works as expected when node is started first and script is called from repl.\r\n\u003c12 versions aren't affected. \r\n\r\n```\r\nnode --use-strict\r\nWelcome to Node.js v12.12.0.\r\nType \".help\" for more information.\r\n> a = 1\r\nThrown:\r\nReferenceError: a is not defined\r\n>\r\n```","author":{"url":"https://github.com/Pravv","@type":"Person","name":"Pravv"},"datePublished":"2019-10-19T20:31:50Z","url":"https://github.com/nodejs/node/issues/30039"}
| 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:324a1090-d960-5923-9e8a-3b06c9fcbc1d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9CC2:2568D:EE677F:13D3F2F:6AED4922 |
| html-safe-nonce | cfb005a80d6dbe2ffc5b64c23796e8dd41c549769f1f47a160a96968d41b0ee2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0MyOjI1NjhEOkVFNjc3RjoxM0QzRjJGOjZBRUQ0OTIyIiwidmlzaXRvcl9pZCI6IjQzNDYxODYwNDEyMjQxNTMzNzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 74433360e58edd5dc8273dddba01a60f258a27501a42fe6590b2dc33ea6cf33a |
| hovercard-subject-tag | issue:509506203 |
| 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/30039/issue_layout |
| twitter:image | https://opengraph.githubassets.com/50d3652addb59ad5940099c1f913b0d1708c60f8fb491b92fc5830d4e19485c9/nodejs/node/issues/30039 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/50d3652addb59ad5940099c1f913b0d1708c60f8fb491b92fc5830d4e19485c9/nodejs/node/issues/30039 |
| og:image:alt | Node 12.*: Windows 64bit, Debian 64bit: The --use-strict flag doesn't apply strict mode to script. reproduction: echo a = 1 > test.js && node --use-strict test expected behavior: ReferenceError: a ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Pravv |
| hostname | github.com |
| expected-hostname | github.com |
| None | 56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11 |
| 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 | 9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width