node/test/fixtures/vm/vm_display_runtime_error.snapshot
Moshe Atlow 03dcf7bc94
test: migrate message tests to use assertSnapshot
PR-URL: https://github.com/nodejs/node/pull/47498
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2023-07-07 00:06:10 +03:00

21 lines
483 B
Text

beginning
test.vm:1
throw new Error("boo!")
^
Error: boo!
at test.vm:1:7
at Script.runInThisContext (node:vm:*)
at Object.runInThisContext (node:vm:*)
at Object.<anonymous> (*fixtures*vm*vm_display_runtime_error.js:31:6)
test.vm:1
throw new Error("spooky!")
^
Error: spooky!
at test.vm:1:7
at Script.runInThisContext (node:vm:*)
at Object.runInThisContext (node:vm:*)
at Object.<anonymous> (*fixtures*vm*vm_display_runtime_error.js:36:4)
Node.js *