emscripten: Use argument list for Module.print
This commit is contained in:
parent
2f6297838e
commit
cb3ab8b12e
|
@ -110,14 +110,15 @@
|
||||||
{
|
{
|
||||||
return function(text)
|
return function(text)
|
||||||
{
|
{
|
||||||
console.log(text)
|
text = Array.prototype.slice.call(arguments).join(' ');
|
||||||
|
console.log(text);
|
||||||
};
|
};
|
||||||
})(),
|
})(),
|
||||||
|
|
||||||
printErr: function(text)
|
printErr: function(text)
|
||||||
{
|
{
|
||||||
var errArgs = Array.prototype.slice.call(arguments).join(' ');
|
var errArgs = Array.prototype.slice.call(arguments).join(' ');
|
||||||
console.error(errArgs)
|
console.error(errArgs);
|
||||||
},
|
},
|
||||||
canvas: document.getElementById('canvas'),
|
canvas: document.getElementById('canvas'),
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue