summaryrefslogtreecommitdiff
path: root/js/timers.ts
diff options
context:
space:
mode:
author迷渡 <justjavac@gmail.com>2019-08-30 23:51:53 +0800
committerRyan Dahl <ry@tinyclouds.org>2019-08-30 11:51:53 -0400
commit65fa2b810b9e22f6eda6c11945e27ba21dff7a1c (patch)
treed7fa3a9b6a0553195e59abd94a8b9beb73845140 /js/timers.ts
parentc370f749b2260cc1d8970b1dcdc63ff00008e26d (diff)
clearTimeout's params should not be bigint (#2838)
Diffstat (limited to 'js/timers.ts')
-rw-r--r--js/timers.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/timers.ts b/js/timers.ts
index d12205317..4b8596cb7 100644
--- a/js/timers.ts
+++ b/js/timers.ts
@@ -262,6 +262,7 @@ function clearTimer(id: number): void {
}
export function clearTimeout(id: number = 0): void {
+ checkBigInt(id);
if (id === 0) {
return;
}
@@ -269,6 +270,7 @@ export function clearTimeout(id: number = 0): void {
}
export function clearInterval(id: number = 0): void {
+ checkBigInt(id);
if (id === 0) {
return;
}