aboutsummaryrefslogtreecommitdiff
path: root/src/compiler.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler.js')
-rw-r--r--src/compiler.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler.js b/src/compiler.js
index 94085c3f..2015a09d 100644
--- a/src/compiler.js
+++ b/src/compiler.js
@@ -54,6 +54,9 @@ if (ENVIRONMENT_IS_NODE) {
printErr = function(x) {
console.log(x);
};
+ if (typeof print === 'undefined') {
+ print = printErr;
+ }
read = function(url) {
var xhr = new XMLHttpRequest();