@@ -1136,7 +1136,7 @@ function formatPrimitive(fn, value, ctx) {
1136
1136
1137
1137
function formatNamespaceObject ( ctx , value , recurseTimes , keys ) {
1138
1138
const output = new Array ( keys . length ) ;
1139
- for ( var i = 0 ; i < keys . length ; i ++ ) {
1139
+ for ( let i = 0 ; i < keys . length ; i ++ ) {
1140
1140
try {
1141
1141
output [ i ] = formatProperty ( ctx , value , recurseTimes , keys [ i ] ,
1142
1142
kObjectType ) ;
@@ -1224,7 +1224,7 @@ function formatArray(ctx, value, recurseTimes) {
1224
1224
1225
1225
const remaining = valLen - len ;
1226
1226
const output = [ ] ;
1227
- for ( var i = 0 ; i < len ; i ++ ) {
1227
+ for ( let i = 0 ; i < len ; i ++ ) {
1228
1228
// Special handle sparse arrays.
1229
1229
if ( ! hasOwnProperty ( value , i ) ) {
1230
1230
return formatSpecialArray ( ctx , value , recurseTimes , len , output , i ) ;
@@ -1300,7 +1300,7 @@ function formatSetIterInner(ctx, recurseTimes, entries, state) {
1300
1300
const maxLength = Math . min ( maxArrayLength , entries . length ) ;
1301
1301
let output = new Array ( maxLength ) ;
1302
1302
ctx . indentationLvl += 2 ;
1303
- for ( var i = 0 ; i < maxLength ; i ++ ) {
1303
+ for ( let i = 0 ; i < maxLength ; i ++ ) {
1304
1304
output [ i ] = formatValue ( ctx , entries [ i ] , recurseTimes ) ;
1305
1305
}
1306
1306
ctx . indentationLvl -= 2 ;
@@ -1468,7 +1468,7 @@ function isBelowBreakLength(ctx, output, start, base) {
1468
1468
let totalLength = output . length + start ;
1469
1469
if ( totalLength + output . length > ctx . breakLength )
1470
1470
return false ;
1471
- for ( var i = 0 ; i < output . length ; i ++ ) {
1471
+ for ( let i = 0 ; i < output . length ; i ++ ) {
1472
1472
if ( ctx . colors ) {
1473
1473
totalLength += removeColors ( output [ i ] ) . length ;
1474
1474
} else {
@@ -1589,7 +1589,7 @@ function formatWithOptionsInternal(inspectOptions, ...args) {
1589
1589
let tempStr ;
1590
1590
let lastPos = 0 ;
1591
1591
1592
- for ( var i = 0 ; i < first . length - 1 ; i ++ ) {
1592
+ for ( let i = 0 ; i < first . length - 1 ; i ++ ) {
1593
1593
if ( first . charCodeAt ( i ) === 37 ) { // '%'
1594
1594
const nextChar = first . charCodeAt ( ++ i ) ;
1595
1595
if ( a + 1 !== args . length ) {
0 commit comments