Merge pull request #78 from connor4312/master

Don't leak arguments
This commit is contained in:
Jake 2015-01-29 06:42:36 -06:00
commit 32c3ece12d

View File

@ -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);
} }
@ -17,4 +20,4 @@ if (config.debug_enabled) {
exp.debug = function(){}; exp.debug = function(){};
} }
module.exports = exp; module.exports = exp;