Skip to content

Commit a3a184d

Browse files
geekMyles Borins
authored andcommitted
lib: fix TypeError in v8-polyfill
PR-URL: #8863 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 347547a commit a3a184d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/v8_prof_polyfill.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function readline() {
7575
var bytes = fs.readSync(fd, buf, 0, buf.length);
7676
line += dec.write(buf.slice(0, bytes));
7777
if (line.length === 0) {
78-
return false;
78+
return '';
7979
}
8080
}
8181
}

0 commit comments

Comments
 (0)