summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/child_process.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/internal/child_process.ts')
-rw-r--r--ext/node/polyfills/internal/child_process.ts9
1 files changed, 2 insertions, 7 deletions
diff --git a/ext/node/polyfills/internal/child_process.ts b/ext/node/polyfills/internal/child_process.ts
index 92aa8d4fa..81a404c14 100644
--- a/ext/node/polyfills/internal/child_process.ts
+++ b/ext/node/polyfills/internal/child_process.ts
@@ -67,10 +67,6 @@ export function mapValues<T, O>(
type NodeStdio = "pipe" | "overlapped" | "ignore" | "inherit" | "ipc";
type DenoStdio = "inherit" | "piped" | "null";
-// @ts-ignore Deno[Deno.internal] is used on purpose here
-const DenoCommand = Deno[Deno.internal]?.nodeUnstable?.Command ||
- Deno.Command;
-
export function stdioStringToArray(
stdio: NodeStdio,
channel: NodeStdio | number,
@@ -183,9 +179,8 @@ export class ChildProcess extends EventEmitter {
this.spawnargs = [cmd, ...cmdArgs];
const stringEnv = mapValues(env, (value) => value.toString());
-
try {
- this.#process = new DenoCommand(cmd, {
+ this.#process = new Deno.Command(cmd, {
args: cmdArgs,
cwd,
env: stringEnv,
@@ -804,7 +799,7 @@ export function spawnSync(
const result: SpawnSyncResult = {};
try {
- const output = new DenoCommand(command, {
+ const output = new Deno.Command(command, {
args,
cwd,
env,