Skip to content

Commit 34659f2

Browse files
Trottrichardlau
authored andcommitted
debugger: avoid non-ASCII char in code file
Avoid non-ASCII char in lib code as a single non-ASCII char forces all the chars to be stored inefficiently, bloating the binary size. This also brings the file closer to compatibility with our lint rules. PR-URL: #38529 Backport-PR-URL: #39446 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent ae90756 commit 34659f2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/internal/inspector/inspect_repl.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,10 @@ function createRepl(inspector) {
353353

354354
[util.inspect.custom](depth, { stylize }) {
355355
const { startTime, endTime } = this.data;
356-
return stylize(`[Profile ${endTime - startTime}μs]`, 'special');
356+
return stylize(
357+
`[Profile ${endTime - startTime}${String.fromCharCode(956)}s]`,
358+
'special'
359+
);
357360
}
358361

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

0 commit comments

Comments
 (0)