mirror of
https://github.com/nodejs/node.git
synced 2025-05-01 17:03:34 +00:00
Commas last in sys.inspect
Ugly? Yes. More readable by first time users? Yes.
This commit is contained in:
parent
b5359e40be
commit
d164989e3f
@ -234,8 +234,8 @@ exports.inspect = function (obj, showHidden, depth, colors) {
|
||||
output = braces[0]
|
||||
+ (base === '' ? '' : base + '\n ')
|
||||
+ ' '
|
||||
+ output.join('\n, ')
|
||||
+ (numLinesEst > 1 ? '\n' : ' ')
|
||||
+ output.join(',\n ')
|
||||
+ ' '
|
||||
+ braces[1]
|
||||
;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user