2012-08-02 15:11:09 +00:00
|
|
|
[stdin]
|
|
|
|
[stdin]:1
|
|
|
|
with(this){__filename}
|
|
|
|
^^^^
|
2019-01-15 15:12:21 +00:00
|
|
|
|
2012-08-02 15:11:09 +00:00
|
|
|
SyntaxError: Strict mode code may not include a with statement
|
2020-10-04 08:26:20 +00:00
|
|
|
at new Script (node:vm:*)
|
|
|
|
at createScript (node:vm:*)
|
|
|
|
at Object.runInThisContext (node:vm:*)
|
|
|
|
at node:internal/process/execution:*:*
|
2020-07-17 16:38:46 +00:00
|
|
|
at [stdin]-wrapper:*:*
|
2020-10-04 08:26:20 +00:00
|
|
|
at evalScript (node:internal/process/execution:*:*)
|
|
|
|
at node:internal/main/eval_stdin:*:*
|
|
|
|
at Socket.<anonymous> (node:internal/process/execution:*:*)
|
|
|
|
at Socket.emit (node:events:*:*)
|
|
|
|
at endReadableNT (node:internal/streams/readable:*:*)
|
2021-09-01 23:59:45 +00:00
|
|
|
|
|
|
|
Node.js *
|
2012-08-02 15:11:09 +00:00
|
|
|
42
|
|
|
|
42
|
|
|
|
[stdin]:1
|
|
|
|
throw new Error("hello")
|
2015-06-19 11:23:56 +00:00
|
|
|
^
|
2017-02-15 05:02:50 +00:00
|
|
|
|
2012-08-02 15:11:09 +00:00
|
|
|
Error: hello
|
2017-02-15 05:02:50 +00:00
|
|
|
at [stdin]:1:7
|
2020-10-04 08:26:20 +00:00
|
|
|
at Script.runInThisContext (node:vm:*)
|
|
|
|
at Object.runInThisContext (node:vm:*)
|
|
|
|
at node:internal/process/execution:*:*
|
2020-07-17 16:38:46 +00:00
|
|
|
at [stdin]-wrapper:*:*
|
2020-10-04 08:26:20 +00:00
|
|
|
at evalScript (node:internal/process/execution:*:*)
|
|
|
|
at node:internal/main/eval_stdin:*:*
|
|
|
|
at Socket.<anonymous> (node:internal/process/execution:*:*)
|
|
|
|
at Socket.emit (node:events:*:*)
|
|
|
|
at endReadableNT (node:internal/streams/readable:*:*)
|
2021-09-01 23:59:45 +00:00
|
|
|
|
|
|
|
Node.js *
|
2012-08-02 15:11:09 +00:00
|
|
|
[stdin]:1
|
|
|
|
throw new Error("hello")
|
2015-06-19 11:23:56 +00:00
|
|
|
^
|
2017-02-15 05:02:50 +00:00
|
|
|
|
2012-08-02 15:11:09 +00:00
|
|
|
Error: hello
|
2012-12-15 01:43:02 +00:00
|
|
|
at [stdin]:1:*
|
2020-10-04 08:26:20 +00:00
|
|
|
at Script.runInThisContext (node:vm:*)
|
|
|
|
at Object.runInThisContext (node:vm:*)
|
|
|
|
at node:internal/process/execution:*:*
|
2020-07-17 16:38:46 +00:00
|
|
|
at [stdin]-wrapper:*:*
|
2020-10-04 08:26:20 +00:00
|
|
|
at evalScript (node:internal/process/execution:*:*)
|
|
|
|
at node:internal/main/eval_stdin:*:*
|
|
|
|
at Socket.<anonymous> (node:internal/process/execution:*:*)
|
|
|
|
at Socket.emit (node:events:*:*)
|
|
|
|
at endReadableNT (node:internal/streams/readable:*:*)
|
2021-09-01 23:59:45 +00:00
|
|
|
|
|
|
|
Node.js *
|
2012-08-02 15:11:09 +00:00
|
|
|
100
|
|
|
|
[stdin]:1
|
2019-11-12 16:33:42 +00:00
|
|
|
let x = 100; y = x;
|
2012-08-02 15:11:09 +00:00
|
|
|
^
|
2017-02-15 05:02:50 +00:00
|
|
|
|
2012-08-02 15:11:09 +00:00
|
|
|
ReferenceError: y is not defined
|
|
|
|
at [stdin]:1:16
|
2020-10-04 08:26:20 +00:00
|
|
|
at Script.runInThisContext (node:vm:*)
|
|
|
|
at Object.runInThisContext (node:vm:*)
|
|
|
|
at node:internal/process/execution:*:*
|
2020-07-17 16:38:46 +00:00
|
|
|
at [stdin]-wrapper:*:*
|
2020-10-04 08:26:20 +00:00
|
|
|
at evalScript (node:internal/process/execution:*:*)
|
|
|
|
at node:internal/main/eval_stdin:*:*
|
|
|
|
at Socket.<anonymous> (node:internal/process/execution:*:*)
|
|
|
|
at Socket.emit (node:events:*:*)
|
|
|
|
at endReadableNT (node:internal/streams/readable:*:*)
|
2012-08-02 15:11:09 +00:00
|
|
|
|
2021-09-01 23:59:45 +00:00
|
|
|
Node.js *
|
|
|
|
|
2012-08-02 15:11:09 +00:00
|
|
|
[stdin]:1
|
2019-11-12 16:33:42 +00:00
|
|
|
let ______________________________________________; throw 10
|
2012-08-02 15:11:09 +00:00
|
|
|
^
|
|
|
|
10
|
2020-06-18 21:38:04 +00:00
|
|
|
(Use `* --trace-uncaught ...` to show where the exception was thrown)
|
2012-08-02 15:11:09 +00:00
|
|
|
|
2021-09-01 23:59:45 +00:00
|
|
|
Node.js *
|
|
|
|
|
2012-08-02 15:11:09 +00:00
|
|
|
[stdin]:1
|
2019-11-12 16:33:42 +00:00
|
|
|
let ______________________________________________; throw 10
|
2012-08-02 15:11:09 +00:00
|
|
|
^
|
|
|
|
10
|
2020-06-18 21:38:04 +00:00
|
|
|
(Use `* --trace-uncaught ...` to show where the exception was thrown)
|
2021-09-01 23:59:45 +00:00
|
|
|
|
|
|
|
Node.js *
|
2012-08-02 15:11:09 +00:00
|
|
|
done
|