@@ -1133,7 +1133,7 @@ function formatPrimitive(fn, value, ctx) {
1133
1133
1134
1134
function formatNamespaceObject ( ctx , value , recurseTimes , keys ) {
1135
1135
const output = new Array ( keys . length ) ;
1136
- for ( var i = 0 ; i < keys . length ; i ++ ) {
1136
+ for ( let i = 0 ; i < keys . length ; i ++ ) {
1137
1137
try {
1138
1138
output [ i ] = formatProperty ( ctx , value , recurseTimes , keys [ i ] ,
1139
1139
kObjectType ) ;
@@ -1221,7 +1221,7 @@ function formatArray(ctx, value, recurseTimes) {
1221
1221
1222
1222
const remaining = valLen - len ;
1223
1223
const output = [ ] ;
1224
- for ( var i = 0 ; i < len ; i ++ ) {
1224
+ for ( let i = 0 ; i < len ; i ++ ) {
1225
1225
// Special handle sparse arrays.
1226
1226
if ( ! hasOwnProperty ( value , i ) ) {
1227
1227
return formatSpecialArray ( ctx , value , recurseTimes , len , output , i ) ;
@@ -1297,7 +1297,7 @@ function formatSetIterInner(ctx, recurseTimes, entries, state) {
1297
1297
const maxLength = Math . min ( maxArrayLength , entries . length ) ;
1298
1298
let output = new Array ( maxLength ) ;
1299
1299
ctx . indentationLvl += 2 ;
1300
- for ( var i = 0 ; i < maxLength ; i ++ ) {
1300
+ for ( let i = 0 ; i < maxLength ; i ++ ) {
1301
1301
output [ i ] = formatValue ( ctx , entries [ i ] , recurseTimes ) ;
1302
1302
}
1303
1303
ctx . indentationLvl -= 2 ;
@@ -1465,7 +1465,7 @@ function isBelowBreakLength(ctx, output, start, base) {
1465
1465
let totalLength = output . length + start ;
1466
1466
if ( totalLength + output . length > ctx . breakLength )
1467
1467
return false ;
1468
- for ( var i = 0 ; i < output . length ; i ++ ) {
1468
+ for ( let i = 0 ; i < output . length ; i ++ ) {
1469
1469
if ( ctx . colors ) {
1470
1470
totalLength += removeColors ( output [ i ] ) . length ;
1471
1471
} else {
@@ -1579,7 +1579,7 @@ function formatWithOptions(inspectOptions, ...args) {
1579
1579
let tempStr ;
1580
1580
let lastPos = 0 ;
1581
1581
1582
- for ( var i = 0 ; i < first . length - 1 ; i ++ ) {
1582
+ for ( let i = 0 ; i < first . length - 1 ; i ++ ) {
1583
1583
if ( first . charCodeAt ( i ) === 37 ) { // '%'
1584
1584
const nextChar = first . charCodeAt ( ++ i ) ;
1585
1585
if ( a + 1 !== args . length ) {
0 commit comments