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 } }
This commit is contained in:
Родитель
4279725d79
Коммит
7af9cb9e80
|
@ -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];
|
||||
|
|
Загрузка…
Ссылка в новой задаче