mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +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.
16 lines
438 B
Plaintext
16 lines
438 B
Plaintext
beginning
|
|
|
|
test.vm:1
|
|
var 5;
|
|
^
|
|
SyntaxError: Unexpected number
|
|
at Object.exports.runInThisContext (vm.js:*)
|
|
at Object.<anonymous> (*test*message*vm_display_syntax_error.js:*)
|
|
at Module._compile (module.js:*)
|
|
at Object.Module._extensions..js (module.js:*)
|
|
at Module.load (module.js:*)
|
|
at Function.Module._load (module.js:*)
|
|
at Function.Module.runMain (module.js:*)
|
|
at startup (node.js:*)
|
|
at node.js:*
|