From 91b606aaae23bcb790b55adc5fe70a182a37d564 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 25 Feb 2020 09:14:27 -0500 Subject: Clean up how we use opIds (#4118) --- cli/ops/process.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'cli/ops/process.rs') diff --git a/cli/ops/process.rs b/cli/ops/process.rs index fe461bd28..9da87bd39 100644 --- a/cli/ops/process.rs +++ b/cli/ops/process.rs @@ -2,7 +2,6 @@ use super::dispatch_json::{Deserialize, JsonOp, Value}; use super::io::StreamResource; use crate::op_error::OpError; -use crate::ops::json_op; use crate::signal::kill; use crate::state::State; use deno_core::*; @@ -22,12 +21,9 @@ use tokio::process::Command; use std::os::unix::process::ExitStatusExt; pub fn init(i: &mut Isolate, s: &State) { - i.register_op("run", s.core_op(json_op(s.stateful_op(op_run)))); - i.register_op( - "run_status", - s.core_op(json_op(s.stateful_op(op_run_status))), - ); - i.register_op("kill", s.core_op(json_op(s.stateful_op(op_kill)))); + i.register_op("op_run", s.stateful_json_op(op_run)); + i.register_op("op_run_status", s.stateful_json_op(op_run_status)); + i.register_op("op_kill", s.stateful_json_op(op_kill)); } fn clone_file(rid: u32, state: &State) -> Result { -- cgit v1.2.3