1
0
Fork 0
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:
Li Hao 2018-10-08 15:46:49 +08:00 committed by Bert Belder
parent 4f3250bc43
commit 3fe6530f11
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461

View file

@ -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);
}
}