diff --git a/ext/node/polyfills/child_process.ts b/ext/node/polyfills/child_process.ts index 041a7b6c54..aef695acf3 100644 --- a/ext/node/polyfills/child_process.ts +++ b/ext/node/polyfills/child_process.ts @@ -135,7 +135,7 @@ export function fork( } else if (flag.startsWith("--no-warnings")) { execArgv[index] = "--quiet"; } else if (flag.startsWith("--experimental")) { - // Do Nothing + execArgv[index] = ""; } else { index++; } diff --git a/ext/node/polyfills/internal/child_process.ts b/ext/node/polyfills/internal/child_process.ts index 2749e22964..71097fd0b7 100644 --- a/ext/node/polyfills/internal/child_process.ts +++ b/ext/node/polyfills/internal/child_process.ts @@ -1194,7 +1194,7 @@ function toDenoArgs(args: string[]): string[] { if (arg === "--no-warnings") { denoArgs.push("--quiet"); } else if (arg.startsWith("--experimental")) { - // Do Nothing + denoArgs.push(""); } else { // Not a known flag that expects a value. Just copy it to the output. denoArgs.push(arg);