From 875a2ef797c44dc62b8ee1f9900c450da307ab6d Mon Sep 17 00:00:00 2001 From: Richard Janicek Date: Tue, 18 Feb 2014 20:50:49 -0500 Subject: Don't redefine console if it already exists like in Chrome worker. --- src/proxyWorker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proxyWorker.js b/src/proxyWorker.js index 5d34b900..b95f05e9 100644 --- a/src/proxyWorker.js +++ b/src/proxyWorker.js @@ -79,7 +79,7 @@ document.createElement = function document_createElement(what) { } }; -var console = { +var console = console || { log: function(x) { Module.printErr(x); } -- cgit v1.2.3-18-g5258