Browse Source

Platform: fix console output in Emscripten.

I don't know what I'm doing, but the previous code caused the output
look like "properly" decoded UTF-16.
pull/23/head
Vladimír Vondruš 13 years ago
parent
commit
3fe2852cde
  1. 4
      src/Platform/EmscriptenApplication.js

4
src/Platform/EmscriptenApplication.js

@ -3,11 +3,11 @@ var Module = {
postRun: [], postRun: [],
printErr: function(message) { printErr: function(message) {
console.error(Array.prototype.slice.call(message).join(' ')); console.error(Array.prototype.slice.call(arguments).join(' '));
}, },
print: function(message) { print: function(message) {
console.log(Array.prototype.slice.call(message).join(' ')); console.log(Array.prototype.slice.call(arguments).join(' '));
}, },
canvas: document.getElementById('module'), canvas: document.getElementById('module'),

Loading…
Cancel
Save