Stub out console::trace in task-bootstrap

This prevents errors from being logged when console.trace() is called
from a task process.
This commit is contained in:
Kevin Sawicki
2013-09-01 10:13:48 -07:00
parent 4bf09baa30
commit 963ad4b28c

View File

@@ -7,6 +7,7 @@ setupGlobals = ->
warn: -> emit 'task:warn', arguments...
log: -> emit 'task:log', arguments...
error: -> emit 'task:error', arguments...
trace: ->
global.__defineGetter__ 'console', -> console
global.document =