1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -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")) { } else if (flag.startsWith("--no-warnings")) {
execArgv[index] = "--quiet"; execArgv[index] = "--quiet";
} else if (flag.startsWith("--experimental")) { } else if (flag.startsWith("--experimental")) {
// Do Nothing execArgv[index] = "";
} else { } else {
index++; index++;
} }

View file

@ -1194,7 +1194,7 @@ function toDenoArgs(args: string[]): string[] {
if (arg === "--no-warnings") { if (arg === "--no-warnings") {
denoArgs.push("--quiet"); denoArgs.push("--quiet");
} else if (arg.startsWith("--experimental")) { } else if (arg.startsWith("--experimental")) {
// Do Nothing denoArgs.push("");
} else { } else {
// Not a known flag that expects a value. Just copy it to the output. // Not a known flag that expects a value. Just copy it to the output.
denoArgs.push(arg); denoArgs.push(arg);