1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

wip: maybe fix length of args error

This commit is contained in:
EdamAmex 2024-10-17 10:51:06 +00:00
parent ee438b636b
commit bee20e7342
2 changed files with 2 additions and 2 deletions

View file

@ -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++;
}

View file

@ -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);