summaryrefslogtreecommitdiff
path: root/tests/testdata/run/082_prepare_stack_trace_throw.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/run/082_prepare_stack_trace_throw.js')
-rw-r--r--tests/testdata/run/082_prepare_stack_trace_throw.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/testdata/run/082_prepare_stack_trace_throw.js b/tests/testdata/run/082_prepare_stack_trace_throw.js
new file mode 100644
index 000000000..8137bfdc8
--- /dev/null
+++ b/tests/testdata/run/082_prepare_stack_trace_throw.js
@@ -0,0 +1,6 @@
+Error.prepareStackTrace = () => {
+ console.trace();
+ throw new Error("foo");
+};
+
+new Error("bar").stack;