summaryrefslogtreecommitdiff
path: root/testdata/013_async_throw.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-05-26 21:55:08 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-05-26 21:55:42 -0400
commitfe6e4febdb6858695cd86c75a9377ede3ca484f9 (patch)
treeda19461f643fc4e5de66376d2dbc0bd646240c13 /testdata/013_async_throw.ts
parent8d2d66256e7104d78611d1ef2e684492d46ea507 (diff)
Add TestErrors
Diffstat (limited to 'testdata/013_async_throw.ts')
-rw-r--r--testdata/013_async_throw.ts9
1 files changed, 9 insertions, 0 deletions
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");