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