summaryrefslogtreecommitdiff
path: root/tests/async_error.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-08-10 15:16:41 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-08-11 09:02:07 -0700
commit4772c14d125f61e0f78107f686d24ac72bd72d7c (patch)
tree76f314e54417076d5298252f3284cf7d510365d3 /tests/async_error.ts
parentc7ce450ee97497944756b6af60034521953431fc (diff)
Add async tests from prototype
Diffstat (limited to 'tests/async_error.ts')
-rw-r--r--tests/async_error.ts9
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");