summaryrefslogtreecommitdiff
path: root/cli/tests/error_stack.ts
blob: f2125d662fefaae5130bcf44c22bb3c7832d01ee (plain)
1
2
3
4
5
6
7
8
9
10
function foo(): never {
  throw new Error("foo");
}

try {
  foo();
} catch (e) {
  console.log(e);
  throw e;
}