From c97b167f47ec0673d6211a3eddac8e06c7b8aa33 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Fri, 9 Jun 2017 17:14:35 -0400 Subject: [PATCH] profiler: declare missing `printErr` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `v8/tools/tickprocessor.js` assumes presence of global `printErr`, which is defined in `d8`. PR-URL: https://github.com/nodejs/node/pull/13590 Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen Reviewed-By: Refael Ackermann Reviewed-By: Tobias Nießen --- lib/internal/v8_prof_processor.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/internal/v8_prof_processor.js b/lib/internal/v8_prof_processor.js index 105ca30b12..f0bcff7482 100644 --- a/lib/internal/v8_prof_processor.js +++ b/lib/internal/v8_prof_processor.js @@ -18,6 +18,11 @@ scriptFiles.forEach(function(s) { script += process.binding('natives')[s] + '\n'; }); +// eslint-disable-next-line no-unused-vars +function printErr(err) { + console.error(err); +} + const tickArguments = []; if (process.platform === 'darwin') { tickArguments.push('--mac');