jrburke/requirejs — pull request #721 by luka8088 (2013-04-23 06:34:33+00:00)
Title: call requirejs error handler for uncaught exceptions

Handle all uncaught exceptions using requirejs global error handler in order to allow easier error debugging/reporting.

```js
requirejs.onError = function (err) {
alert(err);
};

require(['script'], function() {
nonExistingFn();
});
```