This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html Multipage: http://www.whatwg.org/C#timers Complete: http://www.whatwg.org/c#timers Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/ Comment: clearInterval/setInterval with no argument need to silently no-op, not throw Posted from: 98.110.194.132 by bzbarsky@mit.edu User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:30.0) Gecko/20100101 Firefox/30.0
See https://bugzilla.mozilla.org/show_bug.cgi?id=973849 and duplicates. The fix I'm doing for Gecko is this: - void clearTimeout(long handle); + void clearTimeout(optional long handle = 0); - void clearInterval(long handle); + void clearInterval(optional long handle = 0); Since 0 is never a valid handle value, this automatically makes the methods no-ops when called with no arguments.
done as suggested