summaryrefslogtreecommitdiff
path: root/cli/js/ops/os.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-03-11 15:49:53 +0100
committerGitHub <noreply@github.com>2020-03-11 15:49:53 +0100
commit2d1b39bef339edb19ae6be5fb2099e685cee93bb (patch)
tree4e1664f50e079e2f258d86cb0e4a1160fb6b3d7b /cli/js/ops/os.ts
parent99a0c6df79b903e4fe72ce066787039bdede3868 (diff)
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"
Diffstat (limited to 'cli/js/ops/os.ts')
-rw-r--r--cli/js/ops/os.ts3
1 files changed, 1 insertions, 2 deletions
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 {