1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 04:52:26 -05:00
denoland-deno/tests
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
..
config chore: use @std prefix for internal module specifiers (#24543) 2024-07-25 10:26:54 +10:00
ffi chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
integration fix(lsp): handle pathless untitled URIs (#27637) 2025-01-13 15:31:08 +00:00
napi chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
node_compat test(ext/node): disable flaky dgram tests (#27549) 2025-01-06 23:18:45 +01:00
registry fix(ext/node): apply @npmcli/agent workaround to npm-check-updates (#27639) 2025-01-13 18:11:26 +09:00
specs fix(compile): store embedded fs case sensitivity (#27653) 2025-01-13 12:02:37 -05:00
testdata fix(lsp): use verbatim specifier for URL auto-imports (#27605) 2025-01-09 17:54:14 +00:00
unit fix(ext/websocket): Fix close code without reason (#27578) 2025-01-08 20:07:47 +05:30
unit_node fix(node): Prevent node:child_process from always inheriting the parent environment (#27343) (#27340) 2025-01-13 13:46:56 -08:00
util fix(lsp): css preprocessor formatting (#27526) 2025-01-02 13:31:47 +00:00
wpt chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
Cargo.toml chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
lib.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
README.md chore: continue tests/ re-org (#22396) 2024-02-12 17:13:14 -07:00

Deno Integration Tests