File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -80,17 +80,21 @@ exports.formatters.o = exports.formatters.O = function(v) {
80
80
*/
81
81
82
82
function formatArgs ( ) {
83
- var args = arguments ;
83
+ var args = [ ] ;
84
+ var len = arguments . length ;
84
85
var useColors = this . useColors ;
85
86
var name = this . namespace ;
87
+ for ( var i = 0 ; i < len ; i ++ ) {
88
+ args . push ( arguments [ i ] ) ;
89
+ }
86
90
87
91
if ( useColors ) {
88
92
var c = this . color ;
89
93
90
94
args [ 0 ] = ' \u001b[3' + c + ';1m' + name + ' '
91
95
+ '\u001b[0m'
92
- + args [ 0 ] + '\u001b[3' + c + 'm'
93
- + ' +' + exports . humanize ( this . diff ) + '\u001b[0m' ;
96
+ + args [ 0 ] ;
97
+ args . push ( '\u001b[3' + c + 'm +' + exports . humanize ( this . diff ) + '\u001b[0m' ) ;
94
98
} else {
95
99
args [ 0 ] = new Date ( ) . toUTCString ( )
96
100
+ ' ' + name + ' ' + args [ 0 ] ;
You can’t perform that action at this time.
0 commit comments