summaryrefslogtreecommitdiff
path: root/runtime/js
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2022-12-13 05:12:19 +0100
committerGitHub <noreply@github.com>2022-12-13 05:12:19 +0100
commita2ba573e77b63d2bcb5cba19fae09cebda2fc685 (patch)
treea39947b0a551c5017568b7628ca260b5c99c6213 /runtime/js
parent8972ebc9cc33ef1df21c899c35006ea712f7f91f (diff)
fix: default to `"inherit"` for `Deno.Command#spawn()`'s `stdout` & `stderr` (#17025)
Diffstat (limited to 'runtime/js')
-rw-r--r--runtime/js/40_spawn.js7
1 files changed, 6 insertions, 1 deletions
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);
}
};
}