From 4772c14d125f61e0f78107f686d24ac72bd72d7c Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 10 Aug 2018 15:16:41 -0400 Subject: Add async tests from prototype --- tests/async_error.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/async_error.ts (limited to 'tests/async_error.ts') 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"); -- cgit v1.2.3