summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/timers.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/timers.ts b/js/timers.ts
index e503e9ccc..28de13d38 100644
--- a/js/timers.ts
+++ b/js/timers.ts
@@ -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);
}
}