mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
timers: fix clearTimer bug
This commit is contained in:
parent
4f3250bc43
commit
3fe6530f11
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ function unschedule(timer: Timer) {
|
||||||
// Multiple timers that are due at the same point in time.
|
// Multiple timers that are due at the same point in time.
|
||||||
// Remove this timer from the list.
|
// Remove this timer from the list.
|
||||||
const index = list.indexOf(timer);
|
const index = list.indexOf(timer);
|
||||||
assert(index > 0);
|
assert(index > -1);
|
||||||
list.splice(index, 1);
|
list.splice(index, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue