emberjs/ember.js — pull request #368 by matthewtodd (2012-01-09 23:12:01+00:00)
Title: Introduce Ember.onerror.

Application developers may assign a callback to Ember.onerror to catch errors thrown in the run loop.

(Motivation: access to backtraces. They aren't available in window.onerror.)