Files
Karl Seguin 8526770e9f More aggressive timer cleanup
When a timer is cleared, e.g. clearInterval, we flag the task are deleted and
maintain the entry in window._timers. When run, the task is ignored and deleted
from _timers.

This can result in prematurely rejecting timers due to `TooManyTimeout`. One
pattern I've seen is a RAF associated with an element where the RAF is cleared
(cancelAnimationFrame) if already registered. This can quickly result in
TooManyTimers.

This commit removes the timer from _timers as soon as it's canceled. It doesn't
fully eliminate the chance of TooManyTimeout, but it does reduce it.
2026-03-21 11:38:16 +08:00
..
2026-03-21 11:38:16 +08:00
2026-03-17 23:30:36 +00:00
2026-03-17 23:23:10 +00:00
2026-03-20 16:50:03 +08:00
2026-03-19 20:29:20 +08:00
2026-03-19 20:29:20 +08:00
2026-03-02 23:12:16 +09:00
2026-03-17 23:30:36 +00:00
2026-03-19 20:29:20 +08:00