diff options
Diffstat (limited to 'runtime/ops/process.rs')
-rw-r--r-- | runtime/ops/process.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/ops/process.rs b/runtime/ops/process.rs index 89f323232..a60b451eb 100644 --- a/runtime/ops/process.rs +++ b/runtime/ops/process.rs @@ -88,7 +88,7 @@ fn op_run( _zero_copy: &mut [ZeroCopyBuf], ) -> Result<Value, AnyError> { let run_args: RunArgs = serde_json::from_value(args)?; - state.borrow::<Permissions>().check_run()?; + state.borrow::<Permissions>().run.check()?; let args = run_args.cmd; let env = run_args.env; @@ -193,7 +193,7 @@ async fn op_run_status( { let s = state.borrow(); - s.borrow::<Permissions>().check_run()?; + s.borrow::<Permissions>().run.check()?; } let resource = state @@ -285,7 +285,7 @@ fn op_kill( _zero_copy: &mut [ZeroCopyBuf], ) -> Result<Value, AnyError> { super::check_unstable(state, "Deno.kill"); - state.borrow::<Permissions>().check_run()?; + state.borrow::<Permissions>().run.check()?; let args: KillArgs = serde_json::from_value(args)?; kill(args.pid, args.signo)?; |