diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-12-09 16:43:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 16:43:36 +0100 |
commit | cb6700fa5aac03fb3e082f9ed2e01d74238e6a99 (patch) | |
tree | da3edbc7b283deaeff970ba06e32c02bbfbfe010 /runtime/ops/spawn.rs | |
parent | 6541a0a9fd818424688003c617e4a84c3cf7d34d (diff) |
unstable: remove Deno.spawn, Deno.spawnSync, Deno.spawnChild APIs (#16893)
This commit removes three unstable Deno APIs:
- "Deno.spawn()"
- "Deno.spawnSync()"
- "Deno.spawnChild()"
These APIs were replaced by a unified "Deno.Command" API.
Diffstat (limited to 'runtime/ops/spawn.rs')
-rw-r--r-- | runtime/ops/spawn.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/ops/spawn.rs b/runtime/ops/spawn.rs index 03ab7d5c2..11940013c 100644 --- a/runtime/ops/spawn.rs +++ b/runtime/ops/spawn.rs @@ -350,7 +350,8 @@ fn op_spawn_sync( ) -> Result<SpawnOutput, AnyError> { let stdout = matches!(args.stdio.stdout, Stdio::Piped); let stderr = matches!(args.stdio.stderr, Stdio::Piped); - let output = create_command(state, args, "Deno.spawnSync()")?.output()?; + let output = + create_command(state, args, "Deno.Command().outputSync()")?.output()?; Ok(SpawnOutput { status: output.status.try_into()?, @@ -375,7 +376,8 @@ fn op_node_unstable_spawn_sync( let stdout = matches!(args.stdio.stdout, Stdio::Piped); let stderr = matches!(args.stdio.stderr, Stdio::Piped); let output = - node_unstable_create_command(state, args, "Deno.spawnSync()")?.output()?; + node_unstable_create_command(state, args, "Deno.Command().outputSync()")? + .output()?; Ok(SpawnOutput { status: output.status.try_into()?, |