Skip to content

fix: make _extend method use shallow copy#331

Open
0816i wants to merge 1 commit into
fullstack-build:masterfrom
0816i:fix/ctx-log-opts
Open

fix: make _extend method use shallow copy#331
0816i wants to merge 1 commit into
fullstack-build:masterfrom
0816i:fix/ctx-log-opts

Conversation

@0816i

@0816i 0816i commented Nov 27, 2025

Copy link
Copy Markdown

after use polyfill to all environment, at node.js it couldn't override prettyInspectOptions to ctx.

fix: #327

@0816i

0816i commented Nov 27, 2025

Copy link
Copy Markdown
Author

It looks like this fix wasn't included in the 4.10.x update.

@0816i 0816i changed the base branch from master to development December 9, 2025 02:47
@0816i 0816i changed the base branch from development to master December 9, 2025 02:47
@Niek

Niek commented Feb 23, 2026

Copy link
Copy Markdown

@terehov any chance to merge this in?

@Kvintus

Kvintus commented Apr 17, 2026

Copy link
Copy Markdown

@terehov Please ?

@Niek

Niek commented May 18, 2026

Copy link
Copy Markdown

@terehov sorry to bug again, but can you take a minute to merge and release this?

terehov pushed a commit that referenced this pull request Jun 27, 2026
_extend copied origin into a throwaway object and returned it, but the
callers ignore the return value and rely on in-place mutation, so custom
inspect options (depth, colors, ...) were silently dropped. Mutate the
passed-in context directly so the options take effect.
terehov pushed a commit that referenced this pull request Jun 27, 2026
Guards the _extend fix from PR #331: inspect() and formatWithOptions()
must honor depth and colors options. These tests fail against the
previous behavior where options were applied to a discarded copy.
terehov added a commit that referenced this pull request Jun 27, 2026
_extend copied origin into a throwaway object and returned it, but the
callers ignore the return value and rely on in-place mutation, so custom
inspect options (depth, colors, ...) were silently dropped. Mutate the
passed-in context directly so the options take effect.
terehov added a commit that referenced this pull request Jun 27, 2026
Guards the _extend fix from PR #331: inspect() and formatWithOptions()
must honor depth and colors options. These tests fail against the
previous behavior where options were applied to a discarded copy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: prettyInspectOptions not longer working in 4.10.x

3 participants