electron/atom/renderer/lib
JP Richardson d6ae874038 emit error object on process.on('uncaughtException') in renderer
Chromium added the actual `error` object to the 5th parameter in `window.onerror`. This should be emitted as opposed to the `errorMsg` string. Worse yet, since `errorMsg` wasn't an instance of `Error`, any code that assumes this in any `process.on('uncaughtException')` handler would fail. Also, correctly emitting the error provides the stack trace.

This is now an HTML5 standard.

Sources:
- https://html.spec.whatwg.org/multipage/webappapis.html#errorevent
- https://mikewest.org/2013/08/debugging-runtime-errors-with-window-onerror
- https://code.google.com/p/chromium/issues/detail?id=147127
2015-07-10 14:38:03 -05:00
..
web-view Expose Print API to webContents and webView. 2015-06-16 20:08:30 +08:00
chrome-api.coffee Add support for chrome.extension API in devtools extension. 2014-08-28 12:54:19 +08:00
init.coffee emit error object on process.on('uncaughtException') in renderer 2015-07-10 14:38:03 -05:00
inspector.coffee Fix devtools override for its new architecture 2015-03-18 09:57:44 +08:00
override.coffee Always use top window's context for resolving url 2015-07-10 13:57:09 +08:00