summaryrefslogtreecommitdiff
path: root/tests/testdata/run/082_prepare_stack_trace_throw.js
blob: 8137bfdc89868743c04dbaacf0ea25a27c78161c (plain)
1
2
3
4
5
6
Error.prepareStackTrace = () => {
  console.trace();
  throw new Error("foo");
};

new Error("bar").stack;