Log uncaught exceptions to parent process

This commit is contained in:
Kevin Sawicki 2013-05-06 15:21:22 -07:00
parent 43a3c93d9b
commit 42301210c4

View File

@ -13,6 +13,9 @@ console =
error: -> callTaskMethod 'error', arguments...
global.__defineGetter__ 'console', -> console
process.on 'uncaughtException', (error) ->
console.error(error.message)
window.document =
createElement: ->
setAttribute: ->