1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-28 10:09:20 -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 09:38:34 -04: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-16 11:28:02 -04:00
};
2018-08-10 15:16:41 -04:00
foo();
console.log("world");