Browse Source

Don't put an extra comma after bases in inspect.

{ [Function]     { [Function]
, more: true  =>   more: true
, more2: true    , more2: true
, more3: true    , more3: true
, more3: true    , more4: true
, more3: true    , more5: true
}                }
v0.7.4-release
Tim Caswell 15 years ago
committed by Ryan Dahl
parent
commit
7af9cb9e80
  1. 2
      lib/sys.js

2
lib/sys.js

@ -171,7 +171,7 @@ exports.inspect = function (obj, showHidden, depth) {
},0);
if (length > 50) {
output = braces[0] + (base === '' ? '' : base + '\n,') + ' ' + output.join('\n, ') + (numLinesEst > 1 ? '\n' : ' ') + braces[1];
output = braces[0] + (base === '' ? '' : base + '\n ') + ' ' + output.join('\n, ') + (numLinesEst > 1 ? '\n' : ' ') + braces[1];
}
else {
output = braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];

Loading…
Cancel
Save