summaryrefslogtreecommitdiff
path: root/cli/ops/process.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-09-26 20:26:51 +0200
committerGitHub <noreply@github.com>2020-09-26 20:26:51 +0200
commite1beebc71a53d5ad9203a71f8f2764efaac2f649 (patch)
tree52777321e31fc13d6aeb6dd96f6a0aa88d68d109 /cli/ops/process.rs
parentf64a44810e1fc732cd5a0aecec541c6c8a289806 (diff)
refactor: factor out check_unstable op helper (#7695)
Diffstat (limited to 'cli/ops/process.rs')
-rw-r--r--cli/ops/process.rs3
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)?;