visionmedia/mocha — pull request #130 by guille (2011-12-09 06:02:03+00:00)
Title: Added support for `window.onerror`.

This gets us closer to complete browser support. The only gotcha is that timeouts seem to still be firing (but I'm wondering if that's the case in CLI mocha too now), therefore reporting twice for each test.

I have a tentative solution which is keeping track of the current `done` function on `Runnable#run` and have the uncaughtException handler fire that instead.