mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 15:30:56 +01:00
fd3657610e
Passing a filename is still supported in place of certain options arguments, for backward-compatibility, but timeout and display-errors are not translated since those were undocumented. Also managed to eliminate an extra stack trace line by not calling through the `createScript` export. Added a few message tests to show how `displayErrors` works.
63 lines
1.5 KiB
Plaintext
63 lines
1.5 KiB
Plaintext
[eval]
|
|
|
|
[eval]:1
|
|
with(this){__filename}
|
|
^^^^
|
|
SyntaxError: Strict mode code may not include a with statement
|
|
at Object.exports.runInThisContext (vm.js:*)
|
|
at Object.<anonymous> ([eval]-wrapper:*:*)
|
|
at Module._compile (module.js:*:*)
|
|
at evalScript (node.js:*:*)
|
|
at startup (node.js:*:*)
|
|
at node.js:*:*
|
|
42
|
|
42
|
|
|
|
[eval]:1
|
|
throw new Error("hello")
|
|
^
|
|
Error: hello
|
|
at [eval]:1:7
|
|
at Object.exports.runInThisContext (vm.js:*)
|
|
at Object.<anonymous> ([eval]-wrapper:*:*)
|
|
at Module._compile (module.js:*:*)
|
|
at evalScript (node.js:*:*)
|
|
at startup (node.js:*:*)
|
|
at node.js:*:*
|
|
|
|
[eval]:1
|
|
throw new Error("hello")
|
|
^
|
|
Error: hello
|
|
at [eval]:1:7
|
|
at Object.exports.runInThisContext (vm.js:*)
|
|
at Object.<anonymous> ([eval]-wrapper:*:*)
|
|
at Module._compile (module.js:*:*)
|
|
at evalScript (node.js:*:*)
|
|
at startup (node.js:*:*)
|
|
at node.js:*:*
|
|
100
|
|
|
|
[eval]:1
|
|
var x = 100; y = x;
|
|
^
|
|
ReferenceError: y is not defined
|
|
at [eval]:1:16
|
|
at Object.exports.runInThisContext (vm.js:*)
|
|
at Object.<anonymous> ([eval]-wrapper:*:*)
|
|
at Module._compile (module.js:*:*)
|
|
at evalScript (node.js:*:*)
|
|
at startup (node.js:*:*)
|
|
at node.js:*:*
|
|
|
|
[eval]:1
|
|
var ______________________________________________; throw 10
|
|
^
|
|
10
|
|
|
|
[eval]:1
|
|
var ______________________________________________; throw 10
|
|
^
|
|
10
|
|
done
|