1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00
denoland-deno/tests/testdata/run/async_error.ts

10 lines
186 B
TypeScript
Raw Normal View History

2018-08-10 15:16:41 -04:00
console.log("hello");
// deno-lint-ignore 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");