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