@@ -114,7 +114,6 @@ const {
114
114
const {
115
115
customInspectSymbol,
116
116
isError,
117
- join,
118
117
removeColors
119
118
} = require ( 'internal/util' ) ;
120
119
@@ -2057,7 +2056,7 @@ function reduceToSingleString(
2057
2056
const start = output . length + ctx . indentationLvl +
2058
2057
braces [ 0 ] . length + base . length + 10 ;
2059
2058
if ( isBelowBreakLength ( ctx , output , start , base ) ) {
2060
- const joinedOutput = join ( output , ', ' ) ;
2059
+ const joinedOutput = ArrayPrototypeJoin ( output , ', ' ) ;
2061
2060
if ( ! StringPrototypeIncludes ( joinedOutput , '\n' ) ) {
2062
2061
return `${ base ? `${ base } ` : '' } ${ braces [ 0 ] } ${ joinedOutput } ` +
2063
2062
` ${ braces [ 1 ] } ` ;
@@ -2068,12 +2067,12 @@ function reduceToSingleString(
2068
2067
// Line up each entry on an individual line.
2069
2068
const indentation = `\n${ StringPrototypeRepeat ( ' ' , ctx . indentationLvl ) } ` ;
2070
2069
return `${ base ? `${ base } ` : '' } ${ braces [ 0 ] } ${ indentation } ` +
2071
- `${ join ( output , `,${ indentation } ` ) } ${ indentation } ${ braces [ 1 ] } ` ;
2070
+ `${ ArrayPrototypeJoin ( output , `,${ indentation } ` ) } ${ indentation } ${ braces [ 1 ] } ` ;
2072
2071
}
2073
2072
// Line up all entries on a single line in case the entries do not exceed
2074
2073
// `breakLength`.
2075
2074
if ( isBelowBreakLength ( ctx , output , 0 , base ) ) {
2076
- return `${ braces [ 0 ] } ${ base ? ` ${ base } ` : '' } ${ join ( output , ', ' ) } ` +
2075
+ return `${ braces [ 0 ] } ${ base ? ` ${ base } ` : '' } ${ ArrayPrototypeJoin ( output , ', ' ) } ` +
2077
2076
braces [ 1 ] ;
2078
2077
}
2079
2078
const indentation = StringPrototypeRepeat ( ' ' , ctx . indentationLvl ) ;
@@ -2083,7 +2082,7 @@ function reduceToSingleString(
2083
2082
const ln = base === '' && braces [ 0 ] . length === 1 ?
2084
2083
' ' : `${ base ? ` ${ base } ` : '' } \n${ indentation } ` ;
2085
2084
// Line up each entry on an individual line.
2086
- return `${ braces [ 0 ] } ${ ln } ${ join ( output , `,\n${ indentation } ` ) } ${ braces [ 1 ] } ` ;
2085
+ return `${ braces [ 0 ] } ${ ln } ${ ArrayPrototypeJoin ( output , `,\n${ indentation } ` ) } ${ braces [ 1 ] } ` ;
2087
2086
}
2088
2087
2089
2088
function hasBuiltInToString ( value ) {
0 commit comments