From 8bcdb422e387a88075126d80e1612a30f5a7d89e Mon Sep 17 00:00:00 2001 From: Chris Knight Date: Thu, 26 Mar 2020 19:52:47 +0000 Subject: Improve isatty and kill API docs; Deno.kill() - throw on Windows (#4497) --- cli/js/ops/process.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli/js/ops') diff --git a/cli/js/ops/process.ts b/cli/js/ops/process.ts index 39c6eb8b7..fcfa7b9f5 100644 --- a/cli/js/ops/process.ts +++ b/cli/js/ops/process.ts @@ -1,8 +1,12 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { sendSync, sendAsync } from "./dispatch_json.ts"; import { assert } from "../util.ts"; +import { build } from "../build.ts"; export function kill(pid: number, signo: number): void { + if (build.os === "win") { + throw new Error("Not yet implemented"); + } sendSync("op_kill", { pid, signo }); } -- cgit v1.2.3