Skip to content

Commit 50e1f93

Browse files
indutnyaddaleax
authored andcommitted
profiler: declare missing printErr
`v8/tools/tickprocessor.js` assumes presence of global `printErr`, which is defined in `d8`. PR-URL: #13590 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent fff8a56 commit 50e1f93

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/internal/v8_prof_processor.js

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ scriptFiles.forEach(function(s) {
1818
script += process.binding('natives')[s] + '\n';
1919
});
2020

21+
// eslint-disable-next-line no-unused-vars
22+
function printErr(err) {
23+
console.error(err);
24+
}
25+
2126
const tickArguments = [];
2227
if (process.platform === 'darwin') {
2328
tickArguments.push('--mac');

0 commit comments

Comments
 (0)