aboutsummaryrefslogtreecommitdiff
path: root/src/compiler.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-13 10:39:15 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-13 10:39:15 -0800
commit3e8cb2ed7e4d7125ff3fb93da15e5dd891fd8405 (patch)
treef2b69377dddda6bddb798aaf8ac4b6c17789817a /src/compiler.js
parent29e34d90014edc1e7049bdda88058884ecfe6256 (diff)
comment on print() on the web
Diffstat (limited to 'src/compiler.js')
-rw-r--r--src/compiler.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler.js b/src/compiler.js
index 579cd98f..7e3839b6 100644
--- a/src/compiler.js
+++ b/src/compiler.js
@@ -52,6 +52,10 @@ if (ENVIRONMENT_IS_NODE) {
}
} else if (ENVIRONMENT_IS_WEB) {
+ // Warning: We do not override print here, so that you can define it before
+ // this code runs. However, if you do not define it and it is actually
+ // called, it will try to print to a printer, and/or give odd errors.
+
printErr = function(x) {
console.log(x);
};