1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 07:44:48 -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;
}