diff options
Diffstat (limited to 'tests/018_async_catch.ts')
| -rw-r--r-- | tests/018_async_catch.ts | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/018_async_catch.ts b/tests/018_async_catch.ts deleted file mode 100644 index 0d034d798..000000000 --- a/tests/018_async_catch.ts +++ /dev/null @@ -1,14 +0,0 @@ -async function fn(): Promise<never> { - throw new Error("message"); -} -async function call(): Promise<void> { - try { - console.log("before await fn()"); - await fn(); - console.log("after await fn()"); - } catch (error) { - console.log("catch"); - } - console.log("after try-catch"); -} -call().catch((): void => console.log("outer catch")); |
