Skip to content

fix(ext/node): include prototype env vars in child_process spawn#32699

Merged
fraidev merged 3 commits intodenoland:mainfrom
fraidev:fix/child-process-env-prototype
Mar 14, 2026
Merged

fix(ext/node): include prototype env vars in child_process spawn#32699
fraidev merged 3 commits intodenoland:mainfrom
fraidev:fix/child-process-env-prototype

Conversation

@fraidev
Copy link
Copy Markdown
Contributor

@fraidev fraidev commented Mar 14, 2026

The env key collection loop had Object.hasOwn() filtering despite the comment saying "Prototype values are intentionally included". This made for...in pointless since it only kept own properties.

Node.js includes prototype-chain env vars when spawning child processes, and this test explicitly verifies that behavior.

The env key collection loop had `Object.hasOwn()` filtering despite
the comment saying "Prototype values are intentionally included".
This made `for...in` pointless since it only kept own properties.

Node.js includes prototype-chain env vars when spawning child
processes, and this test explicitly verifies that behavior.
Copy link
Copy Markdown
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, you should add a comment ignoring lint error with explanation about it

@fraidev fraidev merged commit 749270f into denoland:main Mar 14, 2026
112 checks passed
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.

2 participants