1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 21:50:00 -05:00
denoland-deno/ext/node/polyfills/internal
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
..
console chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
crypto chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
dns chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
events chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
fs feat(node/fs): Add a chmod method to the FileHandle class (#27522) 2025-01-07 14:58:14 +01:00
process chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
readline chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
streams chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
test chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
util chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
assert.mjs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
async_hooks.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
blocklist.mjs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
buffer.d.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
buffer.mjs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
child_process.ts fix(node): Prevent node:child_process from always inheriting the parent environment (#27343) (#27340) 2025-01-13 13:46:56 -08:00
cli_table.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
constants.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
dgram.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
dtrace.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
error_codes.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
errors.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
event_target.mjs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
fixed_queue.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
hide_stack_frames.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
http.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
idna.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
net.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
normalize_encoding.mjs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
options.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
primordials.mjs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
querystring.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
stream_base_commons.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
timers.mjs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
url.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
util.mjs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
validators.mjs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00