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:
parent
ee438b636b
commit
bee20e7342
2 changed files with 2 additions and 2 deletions
|
@ -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++;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue