1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 04:52:26 -05:00
denoland-deno/tests/unit_node
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
..
_fs feat(node/fs): Add a chmod method to the FileHandle class (#27522) 2025-01-07 14:58:14 +01:00
crypto chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
internal chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
testdata fix(ext/crypto): support md4 digest algorithm (#25656) 2024-09-16 11:04:40 +00:00
_test_utils.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
assert_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
assertion_error_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
async_hooks_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
buffer_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
child_process_test.ts fix(node): Prevent node:child_process from always inheriting the parent environment (#27343) (#27340) 2025-01-13 13:46:56 -08:00
cluster_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
console_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
dgram_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
domain_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
events_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
fetch_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
fs_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
http2_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
http_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
inspector_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
module_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
net_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
os_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
path_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
perf_hooks_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
process_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
punycode_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
querystring_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
readline_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
repl_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
stream_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
string_decoder_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
timers_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
tls_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
tty_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
util_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
v8_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
vm_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
wasi_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
worker_threads_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
zlib_test.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00