Skip to content

Commit

Permalink
lib: changed var to const in internal/v8_polyfill
Browse files Browse the repository at this point in the history
PR-URL: #8615
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
AdriVanHoudt authored and Fishrock123 committed Oct 11, 2016
1 parent 37ce6da commit beb288b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/internal/v8_prof_polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ var line = '';
versionCheck();
function readline() {
while (true) {
var lineBreak = line.indexOf('\n');
const lineBreak = line.indexOf('\n');
if (lineBreak !== -1) {
var res = line.slice(0, lineBreak);
const res = line.slice(0, lineBreak);
line = line.slice(lineBreak + 1);
return res;
}
var bytes = fs.readSync(fd, buf, 0, buf.length);
const bytes = fs.readSync(fd, buf, 0, buf.length);
line += dec.write(buf.slice(0, bytes));
if (line.length === 0) {
return false;
Expand Down

0 comments on commit beb288b

Please sign in to comment.