Browse Source

Commas last in sys.inspect

Ugly? Yes. More readable by first time users? Yes.
v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
d164989e3f
  1. 4
      lib/sys.js

4
lib/sys.js

@ -234,8 +234,8 @@ exports.inspect = function (obj, showHidden, depth, colors) {
output = braces[0] output = braces[0]
+ (base === '' ? '' : base + '\n ') + (base === '' ? '' : base + '\n ')
+ ' ' + ' '
+ output.join('\n, ') + output.join(',\n ')
+ (numLinesEst > 1 ? '\n' : ' ') + ' '
+ braces[1] + braces[1]
; ;
} }

Loading…
Cancel
Save