From 6ac0337165d5e341eee9bff9ff0065894289df69 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 10 Oct 2021 09:48:26 -0400 Subject: feat: Stabilize Deno.kill and Deno.Process.kill (#12375) Co-authored-by: Luca Casonato --- runtime/js/90_deno_ns.js | 2 +- runtime/ops/process.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'runtime') diff --git a/runtime/js/90_deno_ns.js b/runtime/js/90_deno_ns.js index ddc18d425..28c7c48f5 100644 --- a/runtime/js/90_deno_ns.js +++ b/runtime/js/90_deno_ns.js @@ -104,6 +104,7 @@ serveHttp: __bootstrap.http.serveHttp, resolveDns: __bootstrap.net.resolveDns, upgradeWebSocket: __bootstrap.http.upgradeWebSocket, + kill: __bootstrap.process.kill, }; __bootstrap.denoNsUnstable = { @@ -111,7 +112,6 @@ Signal: __bootstrap.signals.Signal, SignalStream: __bootstrap.signals.SignalStream, emit: __bootstrap.compilerApi.emit, - kill: __bootstrap.process.kill, setRaw: __bootstrap.tty.setRaw, consoleSize: __bootstrap.tty.consoleSize, DiagnosticCategory: __bootstrap.diagnostics.DiagnosticCategory, diff --git a/runtime/ops/process.rs b/runtime/ops/process.rs index f6a472590..833b1822c 100644 --- a/runtime/ops/process.rs +++ b/runtime/ops/process.rs @@ -309,7 +309,6 @@ fn op_kill( pid: i32, signal: String, ) -> Result<(), AnyError> { - super::check_unstable(state, "Deno.kill"); state.borrow_mut::().run.check_all()?; kill(pid, &signal)?; Ok(()) -- cgit v1.2.3