summaryrefslogtreecommitdiff
path: root/cli/js/ops
diff options
context:
space:
mode:
authorChris Knight <cknight1234@gmail.com>2020-03-26 19:52:47 +0000
committerGitHub <noreply@github.com>2020-03-26 15:52:47 -0400
commit8bcdb422e387a88075126d80e1612a30f5a7d89e (patch)
treef8b3cc5148619f63ffe0692ab9aae267560c832f /cli/js/ops
parenta053462566874f699fa7f27961143e5f6ff070d3 (diff)
Improve isatty and kill API docs; Deno.kill() - throw on Windows (#4497)
Diffstat (limited to 'cli/js/ops')
-rw-r--r--cli/js/ops/process.ts4
1 files changed, 4 insertions, 0 deletions
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 });
}