Skip to content

Commit 456353e

Browse files
committed
test_runner: filter execArgv fallback for child tests
Apply the test runner propagation filter to execArgv entries that are not reported by the options binding. This prevents config-file and test-runner flags from leaking into isolated child tests while still preserving V8 flags. Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5
1 parent 1f806f2 commit 456353e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/internal/test_runner/runner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ function getRunArgs(path, { forceExit,
208208
const nodeOptionsSet = new SafeSet(processNodeOptions);
209209
const unknownProcessExecArgv = ArrayPrototypeFilter(
210210
process.execArgv,
211-
(arg) => !nodeOptionsSet.has(arg),
211+
(arg, i, arr) => !nodeOptionsSet.has(arg) && filterExecArgv(arg, i, arr),
212212
);
213213
ArrayPrototypePushApply(runArgs, unknownProcessExecArgv);
214214

0 commit comments

Comments
 (0)