1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-17 19:34:02 -05:00
denoland-deno/cli/tests/async_error.ts

10 lines
194 B
TypeScript
Raw Normal View History

2018-08-10 15:16:41 -04:00
console.log("hello");
2020-03-20 14:38:34 +01:00
// eslint-disable-next-line require-await
const foo = async (): Promise<never> => {
2018-08-10 15:16:41 -04:00
console.log("before error");
throw Error("error");
2018-08-17 00:28:02 +09:00
};
2018-08-10 15:16:41 -04:00
foo();
console.log("world");