diff options
Diffstat (limited to 'cli/tests/async_error.ts')
-rw-r--r-- | cli/tests/async_error.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/tests/async_error.ts b/cli/tests/async_error.ts new file mode 100644 index 000000000..81c983a50 --- /dev/null +++ b/cli/tests/async_error.ts @@ -0,0 +1,8 @@ +console.log("hello"); +const foo = async (): Promise<never> => { + console.log("before error"); + throw Error("error"); +}; + +foo(); +console.log("world"); |