mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-22 07:51:17 +01:00
Don't leak arguments
This commit is contained in:
parent
a2fc680b11
commit
ab66fac3a6
@ -4,7 +4,10 @@ var exp = {};
|
||||
|
||||
function log() {
|
||||
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);
|
||||
}
|
||||
|
||||
@ -17,4 +20,4 @@ if (config.debug_enabled) {
|
||||
exp.debug = function(){};
|
||||
}
|
||||
|
||||
module.exports = exp;
|
||||
module.exports = exp;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user