Skip to content

Commit e79f540

Browse files
Trotttargos
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 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent d9867b9 commit e79f540

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/internal/inspector/inspect_repl.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,10 @@ function createRepl(inspector) {
375375

376376
[util.inspect.custom](depth, { stylize }) {
377377
const { startTime, endTime } = this.data;
378-
return stylize(`[Profile ${endTime - startTime}μs]`, 'special');
378+
return stylize(
379+
`[Profile ${endTime - startTime}${String.fromCharCode(956)}s]`,
380+
'special'
381+
);
379382
}
380383

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

0 commit comments

Comments
 (0)