From 1081059c8a5276a20ebacaa056b5a1fb5154140d Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 3 May 2021 20:45:03 -0700 Subject: [PATCH] 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 Backport-PR-URL: https://github.com/nodejs/node/pull/39446 Reviewed-By: Antoine du Hamel Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- lib/internal/inspector/inspect_repl.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/internal/inspector/inspect_repl.js b/lib/internal/inspector/inspect_repl.js index 68217267276fd4..335234080a8b94 100644 --- a/lib/internal/inspector/inspect_repl.js +++ b/lib/internal/inspector/inspect_repl.js @@ -353,7 +353,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') {