Browse Source

lib: fix TypeError in v8-polyfill

PR-URL: https://github.com/nodejs/node/pull/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>
v4.x
Wyatt Preul 8 years ago
committed by Myles Borins
parent
commit
a3a184d40a
  1. 2
      lib/internal/v8_prof_polyfill.js

2
lib/internal/v8_prof_polyfill.js

@ -75,7 +75,7 @@ function readline() {
var bytes = fs.readSync(fd, buf, 0, buf.length);
line += dec.write(buf.slice(0, bytes));
if (line.length === 0) {
return false;
return '';
}
}
}

Loading…
Cancel
Save