Skip to content

Commit b5724a1

Browse files
Trottrichardlau
authored andcommitted
debugger: disable only the lint rules required by current file state
PR-URL: #38529 Backport-PR-URL: #39446 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 34659f2 commit b5724a1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/internal/inspector/inspect_repl.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// TODO(trott): enable ESLint
2-
/* eslint-disable */
2+
/* eslint-disable getter-return, no-restricted-syntax,
3+
node-core/prefer-primordials */
34

45
'use strict';
56
const FS = require('fs');
@@ -353,10 +354,8 @@ function createRepl(inspector) {
353354

354355
[util.inspect.custom](depth, { stylize }) {
355356
const { startTime, endTime } = this.data;
356-
return stylize(
357-
`[Profile ${endTime - startTime}${String.fromCharCode(956)}s]`,
358-
'special'
359-
);
357+
const MU = String.fromChar(956);
358+
return stylize(`[Profile ${endTime - startTime}${MU}s]`, 'special');
360359
}
361360

362361
save(filename = 'node.cpuprofile') {

0 commit comments

Comments
 (0)