mirror of https://github.com/nodejs/node.git
82 lines
2.0 KiB
Plaintext
82 lines
2.0 KiB
Plaintext
[eval]
|
|
[eval]:1
|
|
with(this){__filename}
|
|
^^^^
|
|
SyntaxError: Strict mode code may not include a with statement
|
|
at new Script (node:vm:*:*)
|
|
at createScript (node:vm:*:*)
|
|
at Object.runInThisContext (node:vm:*:*)
|
|
at node:internal/process/execution:*:*
|
|
at [eval]-wrapper:*:*
|
|
at runScript (node:internal/process/execution:*:*)
|
|
at evalScript (node:internal/process/execution:*:*)
|
|
at node:internal/main/eval_string:*:*
|
|
|
|
Node.js *
|
|
42
|
|
42
|
|
[eval]:1
|
|
throw new Error("hello")
|
|
^
|
|
|
|
Error: hello
|
|
at [eval]:1:7
|
|
at Script.runInThisContext (node:vm:*:*)
|
|
at Object.runInThisContext (node:vm:*:*)
|
|
at node:internal/process/execution:*:*
|
|
at [eval]-wrapper:*:*
|
|
at runScript (node:internal/process/execution:*:*)
|
|
at evalScript (node:internal/process/execution:*:*)
|
|
at node:internal/main/eval_string:*:*
|
|
|
|
Node.js *
|
|
|
|
[eval]:1
|
|
throw new Error("hello")
|
|
^
|
|
|
|
Error: hello
|
|
at [eval]:1:7
|
|
at Script.runInThisContext (node:vm:*:*)
|
|
at Object.runInThisContext (node:vm:*:*)
|
|
at node:internal/process/execution:*:*
|
|
at [eval]-wrapper:*:*
|
|
at runScript (node:internal/process/execution:*:*)
|
|
at evalScript (node:internal/process/execution:*:*)
|
|
at node:internal/main/eval_string:*:*
|
|
|
|
Node.js *
|
|
100
|
|
[eval]:1
|
|
var x = 100; y = x;
|
|
^
|
|
|
|
ReferenceError: y is not defined
|
|
at [eval]:1:16
|
|
at Script.runInThisContext (node:vm:*:*)
|
|
at Object.runInThisContext (node:vm:*:*)
|
|
at node:internal/process/execution:*:*
|
|
at [eval]-wrapper:*:*
|
|
at runScript (node:internal/process/execution:*:*)
|
|
at evalScript (node:internal/process/execution:*:*)
|
|
at node:internal/main/eval_string:*:*
|
|
|
|
Node.js *
|
|
|
|
[eval]:1
|
|
var ______________________________________________; throw 10
|
|
^
|
|
10
|
|
(Use `* --trace-uncaught ...` to show where the exception was thrown)
|
|
|
|
Node.js *
|
|
|
|
[eval]:1
|
|
var ______________________________________________; throw 10
|
|
^
|
|
10
|
|
(Use `* --trace-uncaught ...` to show where the exception was thrown)
|
|
|
|
Node.js *
|
|
done
|