summaryrefslogtreecommitdiff
path: root/cli/tests/082_prepare_stack_trace_throw.js
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2021-01-21 09:48:04 +0000
committerGitHub <noreply@github.com>2021-01-21 20:48:04 +1100
commitbdb1ee64800e03699d41265c5158c99e3a390ec7 (patch)
tree28fdf0820530f447167cdad230d72c2b43d18541 /cli/tests/082_prepare_stack_trace_throw.js
parent18ac7d40c87b380ce5ed617bd7c59e344730a883 (diff)
fix(core): Handle prepareStackTrace() throws (#9211)
Fixes #9206
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;