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:
parent
367b87d26d
commit
6bf294d71a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user