From 2d1b39bef339edb19ae6be5fb2099e685cee93bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 11 Mar 2020 15:49:53 +0100 Subject: reorg: remove dispatch.ts, move signals, factor out web utils (#4316) - moves signal definition from "cli/js/process.ts" to "cli/js/signals.ts" - removes "cli/js/dispatch.ts" - removes "cli/js/types.ts" - moves web specific utilities to "cli/js/web/util.ts" --- cli/js/ops/os.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cli/js/ops/os.ts') diff --git a/cli/js/ops/os.ts b/cli/js/ops/os.ts index 2d27f7ef5..5d3026283 100644 --- a/cli/js/ops/os.ts +++ b/cli/js/ops/os.ts @@ -1,7 +1,6 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { sendSync } from "./dispatch_json.ts"; import { errors } from "../errors.ts"; -import * as util from "../util.ts"; /** Get the loadavg. * Requires the `--allow-env` flag. @@ -33,7 +32,7 @@ export function osRelease(): string { /** Exit the Deno process with optional exit code. */ export function exit(code = 0): never { sendSync("op_exit", { code }); - return util.unreachable(); + throw new Error("Code not reachable"); } function setEnv(key: string, value: string): void { -- cgit v1.2.3