Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! lib: remove v8_prof_polyfill from eslint ignore list
  • Loading branch information
aduh95 committed Dec 15, 2020
commit 57843b63fa1d771ca15d22b82f7fe598579a7283
6 changes: 2 additions & 4 deletions lib/internal/v8_prof_polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@

'use strict';

const {
JSONStringify,
} = primordials;
/* eslint-disable node-core/prefer-primordials */

module.exports = { versionCheck };

Expand Down Expand Up @@ -83,7 +81,7 @@ function readline() {
if (bytes === 0) {
process.emitWarning(`Profile file ${logFile} is broken`, {
code: 'BROKEN_PROFILE_FILE',
detail: `${JSONStringify(line)} at the file end is broken`
detail: `${JSON.stringify(line)} at the file end is broken`
});
return '';
}
Expand Down