diff options
author | Tim Caswell <tim@creationix.com> | 2010-04-01 10:32:26 -0500 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-04-01 08:58:19 -0700 |
commit | 7af9cb9e80cd803afb7775cb4bcd606e334b6b7b (patch) | |
tree | 0ea5766d4d7efb91d0b51dcc122c8173bfa2836b /lib/sys.js | |
parent | 4279725d790b5b23e89e4ff90cff2c03be21635d (diff) | |
download | nodejs-7af9cb9e80cd803afb7775cb4bcd606e334b6b7b.tar.gz nodejs-7af9cb9e80cd803afb7775cb4bcd606e334b6b7b.tar.bz2 nodejs-7af9cb9e80cd803afb7775cb4bcd606e334b6b7b.zip |
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
} }
Diffstat (limited to 'lib/sys.js')
-rw-r--r-- | lib/sys.js | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |