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