From 7af9cb9e80cd803afb7775cb4bcd606e334b6b7b Mon Sep 17 00:00:00 2001 From: Tim Caswell Date: Thu, 1 Apr 2010 10:32:26 -0500 Subject: 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 } } --- lib/sys.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sys.js') diff --git a/lib/sys.js b/lib/sys.js index c3b5d6130..d4e601450 100644 --- a/lib/sys.js +++ b/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]; -- cgit v1.2.3