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