From a2ba573e77b63d2bcb5cba19fae09cebda2fc685 Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Tue, 13 Dec 2022 05:12:19 +0100 Subject: fix: default to `"inherit"` for `Deno.Command#spawn()`'s `stdout` & `stderr` (#17025) --- runtime/js/40_spawn.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'runtime/js/40_spawn.js') diff --git a/runtime/js/40_spawn.js b/runtime/js/40_spawn.js index ea6b409a3..0f26313a6 100644 --- a/runtime/js/40_spawn.js +++ b/runtime/js/40_spawn.js @@ -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); } }; } -- cgit v1.2.3