From bdb1ee64800e03699d41265c5158c99e3a390ec7 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Thu, 21 Jan 2021 09:48:04 +0000 Subject: fix(core): Handle prepareStackTrace() throws (#9211) Fixes #9206 --- cli/tests/082_prepare_stack_trace_throw.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 cli/tests/082_prepare_stack_trace_throw.js (limited to 'cli/tests/082_prepare_stack_trace_throw.js') 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; -- cgit v1.2.3