cjohansen/Sinon.JS — pull request #110 by wwalser (2012-04-03 03:57:56+00:00)
Title: Fix for timer callbacks that contain a clock.tick, issue #109

Issue #109

Timers aren't removed from the timeouts array until after they have been called. This means that if a timer's callback contains a clock.tick, that tick will pull the same timeout out of the array and recurses into itself. This blows the stack; a 'too much recursion' exception.