summaryrefslogtreecommitdiff
path: root/cli/js/web/timers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/web/timers.ts')
-rw-r--r--cli/js/web/timers.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/web/timers.ts b/cli/js/web/timers.ts
index 87b23de06..245d6a8c7 100644
--- a/cli/js/web/timers.ts
+++ b/cli/js/web/timers.ts
@@ -234,23 +234,23 @@ function setTimer(
}
export function setTimeout(
+ this: unknown,
cb: (...args: Args) => void,
delay = 0,
...args: Args
): number {
checkBigInt(delay);
- // @ts-expect-error
checkThis(this);
return setTimer(cb, delay, args, false);
}
export function setInterval(
+ this: unknown,
cb: (...args: Args) => void,
delay = 0,
...args: Args
): number {
checkBigInt(delay);
- // @ts-expect-error
checkThis(this);
return setTimer(cb, delay, args, true);
}