aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/library.js b/src/library.js
index f8112af9..efb6abee 100644
--- a/src/library.js
+++ b/src/library.js
@@ -330,18 +330,7 @@ LibraryManager.library = {
output.buffer.push(String.fromCharCode(val));
}
};
- if (!output.printer) {
- if (typeof print == 'function') {
- // Either console or custom print function defined.
- output.printer = print;
- } else if (console && typeof console.log == 'function') {
- // Browser-like environment with a console.
- output.printer = console.log;
- } else {
- // Fallback to a harmless no-op.
- output.printer = function() {};
- }
- }
+ if (!output.printer) output.printer = print;
if (!output.buffer) output.buffer = [];
if (!error) error = output;