node/test/fixtures/eval/eval_messages.snapshot
Marco Ippolito ba5992831b
module: unflag --experimental-strip-types
PR-URL: https://github.com/nodejs/node/pull/56350
Fixes: https://github.com/nodejs/typescript/issues/17
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com>
2024-12-26 18:46:06 +00:00

83 lines
980 B
Text

[eval]
[eval]:1
with(this){__filename}
^^^^
x The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.
,----
1 | with(this){__filename}
: ^^^^
`----
Caused by:
failed to parse
SyntaxError: Strict mode code may not include a with statement
Node.js *
42
42
[eval]:1
throw new Error("hello")
^
Error: hello
Node.js *
[eval]:1
throw new Error("hello")
^
Error: hello
Node.js *
100
[eval]:1
var x = 100; y = x;
^
ReferenceError: y is not defined
Node.js *
[eval]:1
var ______________________________________________; throw 10
^
10
(Use `node --trace-uncaught ...` to show where the exception was thrown)
Node.js *
[eval]:1
var ______________________________________________; throw 10
^
10
(Use `node --trace-uncaught ...` to show where the exception was thrown)
Node.js *
done