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