diff --git a/src/node.js b/src/node.js index 9edc514af7c..fbcd41a6d38 100644 --- a/src/node.js +++ b/src/node.js @@ -194,6 +194,7 @@ process.openStdin = function () { function format (f) { var i = 1; var args = arguments; + if (!(f instanceof String)) return f; return f.replace(/%([sdf])/g, function (x) { switch (x) { case '%s': return args[i++];