Skip to content

Commit 797b938

Browse files
Dennis Saengeraddaleax
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 dade906 commit 797b938

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎lib/internal/v8_prof_polyfill.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ try{
7777
constfd=fs.openSync(logFile,'r');
7878
constbuf=Buffer.allocUnsafe(4096);
7979
constdec=new(require('string_decoder').StringDecoder)('utf-8');
80-
varline='';
80+
letline='';
8181

8282
{
8383
constmessage=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(vari=0;i<3;i++)
128+
for(leti=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)