mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
fix: default to "inherit"
for Deno.Command#spawn()
's stdout
& stderr
(#17025)
This commit is contained in:
parent
8972ebc9cc
commit
a2ba573e77
5 changed files with 41 additions and 6 deletions
|
@ -307,7 +307,12 @@
|
|||
}
|
||||
|
||||
spawn() {
|
||||
return spawnChild(this.#command, this.#options);
|
||||
const options = {
|
||||
...(this.#options ?? {}),
|
||||
stdout: this.#options?.stdout ?? "inherit",
|
||||
stderr: this.#options?.stderr ?? "inherit",
|
||||
};
|
||||
return spawnChild(this.#command, options);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue