summaryrefslogtreecommitdiff
path: root/runtime/ops/process.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ops/process.rs')
-rw-r--r--runtime/ops/process.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ops/process.rs b/runtime/ops/process.rs
index 625bc204c..4b49e21f3 100644
--- a/runtime/ops/process.rs
+++ b/runtime/ops/process.rs
@@ -97,7 +97,7 @@ fn op_run(
_zero_copy: Option<ZeroCopyBuf>,
) -> Result<RunInfo, AnyError> {
let args = run_args.cmd;
- state.borrow::<Permissions>().run.check(&args[0])?;
+ state.borrow_mut::<Permissions>().run.check(&args[0])?;
let env = run_args.env;
let cwd = run_args.cwd;
@@ -286,7 +286,7 @@ fn op_kill(
_zero_copy: Option<ZeroCopyBuf>,
) -> Result<(), AnyError> {
super::check_unstable(state, "Deno.kill");
- state.borrow::<Permissions>().run.check_all()?;
+ state.borrow_mut::<Permissions>().run.check_all()?;
kill(args.pid, args.signo)?;
Ok(())