mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 19:10:38 +02:00
Don't leak arguments
This commit is contained in:
@@ -4,7 +4,10 @@ var exp = {};
|
|||||||
|
|
||||||
function log() {
|
function log() {
|
||||||
var time = new Date().toISOString();
|
var time = new Date().toISOString();
|
||||||
var text = Array.prototype.slice.call(arguments).join(" ");
|
var text = '';
|
||||||
|
for (var i = 0, l = arguments.length; i < l; i++) {
|
||||||
|
text += ' ' + arguments[i];
|
||||||
|
}
|
||||||
console.log(time + ": " + text);
|
console.log(time + ": " + text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user