diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-09-26 20:26:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-26 20:26:51 +0200 |
commit | e1beebc71a53d5ad9203a71f8f2764efaac2f649 (patch) | |
tree | 52777321e31fc13d6aeb6dd96f6a0aa88d68d109 /cli/ops/process.rs | |
parent | f64a44810e1fc732cd5a0aecec541c6c8a289806 (diff) |
refactor: factor out check_unstable op helper (#7695)
Diffstat (limited to 'cli/ops/process.rs')
-rw-r--r-- | cli/ops/process.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/ops/process.rs b/cli/ops/process.rs index 48b945f07..026c6833e 100644 --- a/cli/ops/process.rs +++ b/cli/ops/process.rs @@ -227,8 +227,7 @@ fn op_kill( args: Value, _zero_copy: &mut [ZeroCopyBuf], ) -> Result<Value, AnyError> { - let cli_state = super::global_state(state); - cli_state.check_unstable("Deno.kill"); + super::check_unstable(state, "Deno.kill"); state.borrow::<Permissions>().check_run()?; let args: KillArgs = serde_json::from_value(args)?; |