mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
committed by
James M Snell
parent
d5f0c83d80
commit
c42849fde4
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user