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'),