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: https://github.com/nodejs/node/pull/38529
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Rich Trott
2021-05-03 20:45:03 -07:00
committed by James M Snell
parent d5f0c83d80
commit c42849fde4

View File

@@ -375,7 +375,10 @@ function createRepl(inspector) {
[util.inspect.custom](depth, { stylize }) {
const { startTime, endTime } = this.data;
return stylize(`[Profile ${endTime - startTime}μs]`, 'special');
return stylize(
`[Profile ${endTime - startTime}${String.fromCharCode(956)}s]`,
'special'
);
}
save(filename = 'node.cpuprofile') {