aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-06-20 16:04:59 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-06-20 16:04:59 -0700
commit6ee65ab31f3671c0dc44a44291b8a8084971ae9d (patch)
treed160d87c435cf15de8385e930d0d80698c25c5fc
parent7c3cc646107c8662c52291b6b745ef6353a92dac (diff)
fake console.error in worker
-rw-r--r--src/proxyWorker.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/proxyWorker.js b/src/proxyWorker.js
index 1834164c..4c397cbb 100644
--- a/src/proxyWorker.js
+++ b/src/proxyWorker.js
@@ -131,7 +131,10 @@ if (typeof console === 'undefined') {
var console = {
log: function(x) {
Module.printErr(x);
- }
+ },
+ error: function(x) {
+ Module.printErr(x);
+ },
};
}