mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05: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:
1 parent
d9867b9358
commit
e79f540fa0
1 file changed
+4
-1
@@ -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