From 3fe2852cde8deb30cbd788be1825a8ed104fe426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 20 Oct 2013 22:23:57 +0200 Subject: [PATCH] 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. --- src/Platform/EmscriptenApplication.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Platform/EmscriptenApplication.js b/src/Platform/EmscriptenApplication.js index 8a0706b0c..96717b5f8 100644 --- a/src/Platform/EmscriptenApplication.js +++ b/src/Platform/EmscriptenApplication.js @@ -3,11 +3,11 @@ var Module = { postRun: [], printErr: function(message) { - console.error(Array.prototype.slice.call(message).join(' ')); + console.error(Array.prototype.slice.call(arguments).join(' ')); }, print: function(message) { - console.log(Array.prototype.slice.call(message).join(' ')); + console.log(Array.prototype.slice.call(arguments).join(' ')); }, canvas: document.getElementById('module'),