From fe6e4febdb6858695cd86c75a9377ede3ca484f9 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 26 May 2018 21:55:08 -0400 Subject: Add TestErrors --- testdata/013_async_throw.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 testdata/013_async_throw.ts (limited to 'testdata') diff --git a/testdata/013_async_throw.ts b/testdata/013_async_throw.ts new file mode 100644 index 000000000..12dee11eb --- /dev/null +++ b/testdata/013_async_throw.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