mirror of https://github.com/nodejs/node.git
util: speed up common case of formatting string
PR-URL: https://github.com/nodejs/io.js/pull/1749 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>pull/1749/merge
parent
9b35be5810
commit
214d02040e
|
@ -13,6 +13,8 @@ exports.format = function(f) {
|
|||
return objects.join(' ');
|
||||
}
|
||||
|
||||
if (arguments.length === 1) return f;
|
||||
|
||||
var i = 1;
|
||||
var args = arguments;
|
||||
var len = args.length;
|
||||
|
|
Loading…
Reference in New Issue