diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-13 10:39:15 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-13 10:39:15 -0800 |
commit | 3e8cb2ed7e4d7125ff3fb93da15e5dd891fd8405 (patch) | |
tree | f2b69377dddda6bddb798aaf8ac4b6c17789817a /src/shell.js | |
parent | 29e34d90014edc1e7049bdda88058884ecfe6256 (diff) |
comment on print() on the web
Diffstat (limited to 'src/shell.js')
-rw-r--r-- | src/shell.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shell.js b/src/shell.js index 61f2d5cd..850dfd81 100644 --- a/src/shell.js +++ b/src/shell.js @@ -44,6 +44,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); }; |