Skip to content

Commit 6d63b56

Browse files
Dennis Saengertargos
Dennis Saenger
authored andcommitted
lib: replace var with let
PR-URL: #30396 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 2244479 commit 6d63b56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/v8_prof_polyfill.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ try {
7777
const fd = fs.openSync(logFile, 'r');
7878
const buf = Buffer.allocUnsafe(4096);
7979
const dec = new (require('string_decoder').StringDecoder)('utf-8');
80-
var line = '';
80+
let line = '';
8181

8282
{
8383
const message = versionCheck(peekline(), process.versions.v8);
@@ -125,7 +125,7 @@ function versionCheck(firstLine, expected) {
125125
return 'Unable to read v8-version from log file.';
126126
}
127127
// Compare major, minor and build; ignore the patch and candidate fields.
128-
for (var i = 0; i < 3; i++)
128+
for (let i = 0; i < 3; i++)
129129
if (curVer[i] !== firstLine[i + 1])
130130
return 'Testing v8 version different from logging version';
131131
}

0 commit comments

Comments
 (0)