summaryrefslogtreecommitdiff
path: root/tests/specs/run/async_error/async_error.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/run/async_error/async_error.ts')
-rw-r--r--tests/specs/run/async_error/async_error.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/specs/run/async_error/async_error.ts b/tests/specs/run/async_error/async_error.ts
new file mode 100644
index 000000000..b55c73aeb
--- /dev/null
+++ b/tests/specs/run/async_error/async_error.ts
@@ -0,0 +1,9 @@
+console.log("hello");
+// deno-lint-ignore require-await
+const foo = async (): Promise<never> => {
+ console.log("before error");
+ throw Error("error");
+};
+
+foo();
+console.log("world");