Skip to content

Commit 99f64f7

Browse files
AdriVanHoudtjasnell
authored andcommitted
lib: changed var to const in internal/v8_polyfill
PR-URL: #8615 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 3ddc9db commit 99f64f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/internal/v8_prof_polyfill.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ var line = '';
6767
versionCheck();
6868
function readline() {
6969
while (true) {
70-
var lineBreak = line.indexOf('\n');
70+
const lineBreak = line.indexOf('\n');
7171
if (lineBreak !== -1) {
72-
var res = line.slice(0, lineBreak);
72+
const res = line.slice(0, lineBreak);
7373
line = line.slice(lineBreak + 1);
7474
return res;
7575
}
76-
var bytes = fs.readSync(fd, buf, 0, buf.length);
76+
const bytes = fs.readSync(fd, buf, 0, buf.length);
7777
line += dec.write(buf.slice(0, bytes));
7878
if (line.length === 0) {
7979
return false;

0 commit comments

Comments
 (0)