mirror of
https://github.com/denoland/deno.git
synced 2025-01-10 16:11:13 -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.
|
||||
// Remove this timer from the list.
|
||||
const index = list.indexOf(timer);
|
||||
assert(index > 0);
|
||||
assert(index > -1);
|
||||
list.splice(index, 1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue