1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00
denoland-deno/tests/error_stack.ts
2019-07-29 09:11:08 +00:00

10 lines
113 B
TypeScript

function foo(): never {
throw new Error("foo");
}
try {
foo();
} catch (e) {
console.log(e);
throw e;
}