Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert the comma-last change to sys.inspect

It's just too ugly.
  • Loading branch information...
commit 7d6747a9b519502d27e84d19b43fde372964ca10 1 parent b4d12d6
@isaacs authored
Showing with 6 additions and 7 deletions.
  1. +6 −7 lib/util.js
View
13 lib/util.js
@@ -259,13 +259,12 @@ exports.inspect = function(obj, showHidden, depth, colors) {
}, 0);
if (length > (require('readline').columns || 50)) {
- output = braces[0] +
- (base === '' ? '' : base + '\n ') +
- ' ' +
- output.join(',\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];
}
Please sign in to comment.
Something went wrong with that request. Please try again.