From d164989e3fd7199ad8905d884c378eecc60f51ee Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 8 Oct 2010 18:26:53 -0700 Subject: [PATCH] Commas last in sys.inspect Ugly? Yes. More readable by first time users? Yes. --- lib/sys.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sys.js b/lib/sys.js index e8985d25fa..caf383400b 100644 --- a/lib/sys.js +++ b/lib/sys.js @@ -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] ; }