diff --git a/src/util.js b/src/util.js index 47d9edfc3..e9e57cac6 100644 --- a/src/util.js +++ b/src/util.js @@ -22,8 +22,6 @@ var log = (function() { if ('console' in globalScope && 'log' in globalScope['console']) { return globalScope['console']['log'].bind(globalScope['console']); - } else if ('print' in globalScope) { - return globalScope['print'].bind(globalScope); } else { return function nop() { }; diff --git a/src/worker.js b/src/worker.js index d0c39e865..a5b323bf5 100644 --- a/src/worker.js +++ b/src/worker.js @@ -35,6 +35,7 @@ function MessageHandler(name, comObj) { }]; } else { ah['console_error'] = [function ahConsoleError(data) { + log.apply(null, data); }]; } ah['_warn'] = [function ah_Warn(data) {