no warning when using const
out of strict mode
#3318
Labels
v8 engine
Issues and PRs related to the V8 dependency.
const
out of strict mode
#3318
I get this warning-
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
when I use
let
out of strict mode but no warning when I useconst
out of it? the docs here sayconst
is only available in strict-mode as well? https://nodejs.org/en/docs/es6/I see that I don't get a
SyntaxError
when mutating variables declared w/const
out of strict mode anyhow, but that part is reasonable.The text was updated successfully, but these errors were encountered: