1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-26 17:19:06 -05:00
denoland-deno/cli/tests/async_error.ts

9 lines
152 B
TypeScript
Raw Normal View History

2018-08-10 15:16:41 -04:00
console.log("hello");
const foo = async (): Promise<never> => {
2018-08-10 15:16:41 -04:00
console.log("before error");
throw Error("error");
2018-08-16 11:28:02 -04:00
};
2018-08-10 15:16:41 -04:00
foo();
console.log("world");