aboutsummaryrefslogtreecommitdiff
path: root/src/preamble.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-12 11:24:16 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-12 11:24:16 -0800
commita5bd3ed73db5f3d499eab532034bb9f6960df28f (patch)
treeaab395631955f7359389f344b75432a784886799 /src/preamble.js
parentae02feec361db8a69d51a69d51b02ea742212a94 (diff)
support for generating html in emcc, and a test for that that also tests SDL, and some fixes for SDL
Diffstat (limited to 'src/preamble.js')
-rw-r--r--src/preamble.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/preamble.js b/src/preamble.js
index 1e9e1f11..cd9138d4 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -690,12 +690,6 @@ Module['String_copy'] = String_copy;
// Tools
-if (typeof console === 'object' && typeof console.log === 'function') {
- this['print'] = function(x) { console.log(x) }; // web console
-} else if (typeof print === 'undefined') {
- this['print'] = function(){}; // harmless no-op
-}
-
// This processes a JS string into a C-line array of numbers, 0-terminated.
// For LLVM-originating strings, see parser.js:parseLLVMString function
function intArrayFromString(stringy, dontAddNull) {