diff options
Diffstat (limited to 'runtime/ops/spawn.rs')
-rw-r--r-- | runtime/ops/spawn.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/runtime/ops/spawn.rs b/runtime/ops/spawn.rs index 11940013c..4bbf1ef48 100644 --- a/runtime/ops/spawn.rs +++ b/runtime/ops/spawn.rs @@ -5,7 +5,7 @@ use super::io::ChildStdinResource; use super::io::ChildStdoutResource; use super::process::Stdio; use super::process::StdioOrRid; -use crate::permissions::Permissions; +use crate::permissions::PermissionsContainer; use deno_core::error::AnyError; use deno_core::op; use deno_core::Extension; @@ -131,9 +131,8 @@ fn node_unstable_create_command( api_name: &str, ) -> Result<std::process::Command, AnyError> { state - .borrow_mut::<Permissions>() - .run - .check(&args.cmd, Some(api_name))?; + .borrow_mut::<PermissionsContainer>() + .check_run(&args.cmd, api_name)?; let mut command = std::process::Command::new(args.cmd); @@ -196,9 +195,8 @@ fn create_command( ) -> Result<std::process::Command, AnyError> { super::check_unstable(state, "Deno.spawn"); state - .borrow_mut::<Permissions>() - .run - .check(&args.cmd, Some(api_name))?; + .borrow_mut::<PermissionsContainer>() + .check_run(&args.cmd, api_name)?; let mut command = std::process::Command::new(args.cmd); |