diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2021-10-10 09:48:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-10 15:48:26 +0200 |
| commit | 6ac0337165d5e341eee9bff9ff0065894289df69 (patch) | |
| tree | 9cba4b1ac1f271dfc8a80aa8688a398e7cc91eb6 /runtime | |
| parent | ffea0f198c27368405541e5a871deccc132c7ad9 (diff) | |
feat: Stabilize Deno.kill and Deno.Process.kill (#12375)
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
Diffstat (limited to 'runtime')
| -rw-r--r-- | runtime/js/90_deno_ns.js | 2 | ||||
| -rw-r--r-- | runtime/ops/process.rs | 1 |
2 files changed, 1 insertions, 2 deletions
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::<Permissions>().run.check_all()?; kill(pid, &signal)?; Ok(()) |
