summaryrefslogtreecommitdiff
path: root/test/message/vm_display_runtime_error.out
diff options
context:
space:
mode:
authorDomenic Denicola <domenic@domenicdenicola.com>2013-08-24 18:53:24 -0400
committerisaacs <i@izs.me>2013-08-28 22:27:24 -0700
commitfd3657610e49005dfc778c3f060dbba0a34f286a (patch)
treeb6f5dec4b403e544e54f1898fc4f65177c1b94ef /test/message/vm_display_runtime_error.out
parentde7d698df7d2e840d079336606d56cdaf9ee9c03 (diff)
downloadandroid-node-v8-fd3657610e49005dfc778c3f060dbba0a34f286a.tar.gz
android-node-v8-fd3657610e49005dfc778c3f060dbba0a34f286a.tar.bz2
android-node-v8-fd3657610e49005dfc778c3f060dbba0a34f286a.zip
vm: update API to use options argument
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.
Diffstat (limited to 'test/message/vm_display_runtime_error.out')
-rw-r--r--test/message/vm_display_runtime_error.out16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/message/vm_display_runtime_error.out b/test/message/vm_display_runtime_error.out
new file mode 100644
index 0000000000..6c3314de0d
--- /dev/null
+++ b/test/message/vm_display_runtime_error.out
@@ -0,0 +1,16 @@
+beginning
+
+test.vm:1
+throw new Error("boo!")
+ ^
+Error: boo!
+ at test.vm:1:7
+ at Object.exports.runInThisContext (vm.js:*)
+ at Object.<anonymous> (*test*message*vm_display_runtime_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:*