Skip to content

Commit aa5664f

Browse files
geekjasnell
authored andcommitted
lib: fix TypeError in v8-polyfill
PR-URL: #8863 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 14ddd1a commit aa5664f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/v8_prof_polyfill.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function readline() {
7676
const bytes = fs.readSync(fd, buf, 0, buf.length);
7777
line += dec.write(buf.slice(0, bytes));
7878
if (line.length === 0) {
79-
return false;
79+
return '';
8080
}
8181
}
8282
}

0 commit comments

Comments
 (0)