From 6cd5588a67459308aa5c8af310baf8fafd0be4d5 Mon Sep 17 00:00:00 2001 From: Wyatt Preul Date: Fri, 30 Sep 2016 11:35:27 -0500 Subject: [PATCH] lib: fix TypeError in v8-polyfill MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/8863 Reviewed-By: James M Snell Reviewed-By: Ben Noordhuis Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig --- lib/internal/v8_prof_polyfill.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/v8_prof_polyfill.js b/lib/internal/v8_prof_polyfill.js index b4c025d50e8b1d..34cd10337f12a1 100644 --- a/lib/internal/v8_prof_polyfill.js +++ b/lib/internal/v8_prof_polyfill.js @@ -76,7 +76,7 @@ function readline() { const bytes = fs.readSync(fd, buf, 0, buf.length); line += dec.write(buf.slice(0, bytes)); if (line.length === 0) { - return false; + return ''; } } }