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