1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 04:52:26 -05:00
denoland-deno/ext
TateKennington 5a39f2f096
fix(node): Prevent node:child_process from always inheriting the parent environment (#27343) (#27340)
Fixes #27343

Currently the node:child_process polyfill is always passing the full
parent environment to all spawned subprocesses. In the case where
`options.env` is provided those keys are overridden but the rest of the
parent environment is still passed through.

On Node the behaviour is for child processes to only inherit the parent
environment when `options.env` isn't specified. When `options.env` is
specified the child process inherits only those keys.

This PR updates the internal node child_process polyfill so that the
`clearEnv` argument is set to true when spawning the subprocess to
prevent the parent environment always being inherited by default. It
also fixes an issue where `normalizeSpawnArguments` wasn't returning the
`env` option if `options.env` was unset.
2025-01-13 13:46:56 -08:00
..
broadcast_channel chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
cache chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
canvas chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
console chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
cron chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
crypto chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
fetch chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
ffi chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
fs chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
http chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
io chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
kv chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
napi chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
net chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
node fix(node): Prevent node:child_process from always inheriting the parent environment (#27343) (#27340) 2025-01-13 13:46:56 -08:00
telemetry chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
tls chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
url chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
web chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
webgpu chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
webidl chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
websocket chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
webstorage chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00