0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00

JSON is %j not %f

This commit is contained in:
Ryan Dahl 2010-07-13 10:16:33 -07:00
parent 367b87d26d
commit 6bf294d71a

View File

@ -199,7 +199,7 @@ function format (f) {
switch (x) {
case '%s': return args[i++];
case '%d': return args[i++].toString();
case '%f': return JSON.stringify(args[i++]);
case '%j': return JSON.stringify(args[i++]);
default:
return x;
}