From bee20e7342e7220a25ba2c5c0e0cd02efd0d6aa4 Mon Sep 17 00:00:00 2001 From: EdamAmex <121654029+EdamAme-x@users.noreply.github.com> Date: Thu, 17 Oct 2024 10:51:06 +0000 Subject: [PATCH] wip: maybe fix length of args error --- ext/node/polyfills/child_process.ts | 2 +- ext/node/polyfills/internal/child_process.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);