mirror of
https://github.com/zebrajr/node.git
synced 2025-12-07 12:20:50 +01:00
This change allows for easier recognition of builtin modules in stack traces. Refs: https://github.com/nodejs/node/issues/11893 PR-URL: https://github.com/nodejs/node/pull/35498 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Zeyu Yang <himself65@outlook.com>
78 lines
2.4 KiB
Plaintext
78 lines
2.4 KiB
Plaintext
[stdin]
|
|
[stdin]: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 [stdin]-wrapper:*:*
|
|
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:*:*)
|
|
42
|
|
42
|
|
[stdin]:1
|
|
throw new Error("hello")
|
|
^
|
|
|
|
Error: hello
|
|
at [stdin]:1:7
|
|
at Script.runInThisContext (node:vm:*)
|
|
at Object.runInThisContext (node:vm:*)
|
|
at node:internal/process/execution:*:*
|
|
at [stdin]-wrapper:*:*
|
|
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:*:*)
|
|
[stdin]:1
|
|
throw new Error("hello")
|
|
^
|
|
|
|
Error: hello
|
|
at [stdin]:1:*
|
|
at Script.runInThisContext (node:vm:*)
|
|
at Object.runInThisContext (node:vm:*)
|
|
at node:internal/process/execution:*:*
|
|
at [stdin]-wrapper:*:*
|
|
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:*:*)
|
|
100
|
|
[stdin]:1
|
|
let x = 100; y = x;
|
|
^
|
|
|
|
ReferenceError: y is not defined
|
|
at [stdin]:1:16
|
|
at Script.runInThisContext (node:vm:*)
|
|
at Object.runInThisContext (node:vm:*)
|
|
at node:internal/process/execution:*:*
|
|
at [stdin]-wrapper:*:*
|
|
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:*:*)
|
|
|
|
[stdin]:1
|
|
let ______________________________________________; throw 10
|
|
^
|
|
10
|
|
(Use `* --trace-uncaught ...` to show where the exception was thrown)
|
|
|
|
[stdin]:1
|
|
let ______________________________________________; throw 10
|
|
^
|
|
10
|
|
(Use `* --trace-uncaught ...` to show where the exception was thrown)
|
|
done
|