aboutsummaryrefslogtreecommitdiff
path: root/src/compiler.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler.js')
-rw-r--r--src/compiler.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/compiler.js b/src/compiler.js
index 33f0e1fb..655fd9a6 100644
--- a/src/compiler.js
+++ b/src/compiler.js
@@ -52,11 +52,7 @@ 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) {
+ print = printErr = function(x) {
console.log(x);
};