Commit dcb0c8a 1 parent 7251e8c commit dcb0c8a Copy full SHA for dcb0c8a
File tree 3 files changed +3
-2
lines changed
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -488,7 +488,7 @@ changes:
488
488
negative to show no elements. ** Default:** ` 100 ` .
489
489
* ` maxStringLength ` {integer} Specifies the maximum number of characters to
490
490
include when formatting. Set to ` null ` or ` Infinity ` to show all elements.
491
- Set to ` 0 ` or negative to show no characters. ** Default:** ` Infinity ` .
491
+ Set to ` 0 ` or negative to show no characters. ** Default:** ` 10000 ` .
492
492
* ` breakLength ` {integer} The length at which input values are split across
493
493
multiple lines. Set to ` Infinity ` to format the input as a single line
494
494
(in combination with ` compact ` set to ` true ` or any number >= ` 1 ` ).
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ const inspectDefaultOptions = ObjectSeal({
146
146
customInspect : true ,
147
147
showProxy : false ,
148
148
maxArrayLength : 100 ,
149
- maxStringLength : Infinity ,
149
+ maxStringLength : 10000 ,
150
150
breakLength : 80 ,
151
151
compact : 3 ,
152
152
sorted : false ,
Original file line number Diff line number Diff line change @@ -2782,6 +2782,7 @@ assert.strictEqual(
2782
2782
2783
2783
{
2784
2784
const x = 'a' . repeat ( 1e6 ) ;
2785
+ assert ( util . inspect ( x ) . endsWith ( '... 990000 more characters' ) ) ;
2785
2786
assert . strictEqual (
2786
2787
util . inspect ( x , { maxStringLength : 4 } ) ,
2787
2788
"'aaaa'... 999996 more characters"
You can’t perform that action at this time.
0 commit comments