summaryrefslogtreecommitdiff
path: root/tests/018_async_catch.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/018_async_catch.ts')
-rw-r--r--tests/018_async_catch.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/018_async_catch.ts b/tests/018_async_catch.ts
index b073654d9..f59c22ee2 100644
--- a/tests/018_async_catch.ts
+++ b/tests/018_async_catch.ts
@@ -1,7 +1,7 @@
-async function fn() {
+async function fn(): Promise<never> {
throw new Error("message");
}
-async function call() {
+async function call(): Promise<void> {
try {
console.log("before await fn()");
await fn();