From d8f1cb4500e63c9dacea04c2cdc86dbd2b696132 Mon Sep 17 00:00:00 2001 From: saiHemak Date: Fri, 10 Nov 2017 13:26:44 +0530 Subject: [PATCH] lib: replace String concatenation with template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/16922 Reviewed-By: James M Snell Reviewed-By: Tobias Nießen Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Franziska Hinkelmann --- 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 1bfa111d8d8ca3..5c6b1407120ea2 100644 --- a/lib/internal/v8_prof_polyfill.js +++ b/lib/internal/v8_prof_polyfill.js @@ -79,7 +79,7 @@ var line = ''; function peekline() { const s = readline(); - line = s + '\n' + line; + line = `${s}\n${line}`; return s; }