From a3a184d40a3ae6810037e1b0094f24f387176690 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 755f8f0d65d1fb..99096ba9e59ec5 100644 --- a/lib/internal/v8_prof_polyfill.js +++ b/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 ''; } } }