node/lib/internal/util
Ge Gao fbef1cf438
util: fix stylize of special properties in inspect
Previously, formatExtraProperties applied ctx.stylize to the entire
'[key]: value' string. This caused the colon and space to be styled,
making the output inconsistent with normal object properties.

Now, only the key itself is stylized, and the colon and space remain
unstyled, aligning with the formatting of regular properties.

Refs: https://github.com/nodejs/node/pull/60131
PR-URL: https://github.com/nodejs/node/pull/60479
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Jordan Harband <ljharb@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2025-10-31 08:33:38 +00:00
..
parse_args meta: enable jsdoc/check-tag-names rule 2025-07-18 09:28:21 +00:00
colors.js lib: refactor code to improve readability 2024-11-27 20:48:21 +00:00
comparisons.js lib: update isDeepStrictEqual to support options 2025-09-14 00:39:49 +00:00
debuglog.js util: fix debuglog.enabled not being present with callback logger 2025-09-14 00:06:57 +00:00
diff.js meta: enable jsdoc/check-tag-names rule 2025-07-18 09:28:21 +00:00
inspect.js util: fix stylize of special properties in inspect 2025-10-31 08:33:38 +00:00
inspector.js tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
trace_sigint.js lib: add trace-sigint APIs 2025-08-11 09:14:44 +00:00
types.js util: add types.isFloat16Array() 2025-04-16 22:09:02 +00:00