Skip to content

Commit 7748e50

Browse files
author
Thomas Parisot
committed
Add %O formatter to reflect Chrome's console.log capability
refs #278
1 parent 39ecd87 commit 7748e50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ var inspect = (4 === util.inspect.length ?
6868
}
6969
);
7070

71-
exports.formatters.o = function(v) {
71+
exports.formatters.o = exports.formatters.O = function(v) {
7272
return inspect(v, this.useColors)
7373
.replace(/\s*\n\s*/g, ' ');
7474
};

0 commit comments

Comments
 (0)