From 42301210c48ec23721779654e1b194eefbbe174c Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 6 May 2013 15:21:22 -0700 Subject: [PATCH] Log uncaught exceptions to parent process --- src/stdlib/task-shell.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stdlib/task-shell.coffee b/src/stdlib/task-shell.coffee index 6ac2d5f6e..e4f547a5f 100644 --- a/src/stdlib/task-shell.coffee +++ b/src/stdlib/task-shell.coffee @@ -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: ->