--use_strict
does not work with script and REPL, only work with stdin and eval
#47918
Labels
confirmed-bug
Issues with confirmed bugs.
duplicate
Issues and PRs that are duplicates of other issues or PRs.
v8 engine
Issues and PRs related to the V8 dependency.
Background
--use_strict
is not my use case.I'm just investigating
--use_strict
.Description
--use_strict
works with stdin--use_strict
works with eval--use_strict
not works file$ node --use_strict actual.cjs { isStrict: [ false, false ] }
--use_strict
not works REPLVersion
v18.15.0
Platform
No response
Subsystem
No response
What steps will reproduce the bug?
==> actual.cjs <==
==> expected.cjs <==
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior? Why is that the expected behavior?
should be
or fix cli flag
--use_strict
or remove cli flag
--use_strict
deprecate --use_strict #6429or show message
What do you see instead?
--use_strict
not works file$ node --use_strict actual.cjs { isStrict: [ false, false ] }
--use_strict
not works REPLAdditional information
Seems related
#4196
#6429
The text was updated successfully, but these errors were encountered: