diff options
Diffstat (limited to 'cli/js/ops')
-rw-r--r-- | cli/js/ops/os.ts | 3 |
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 { |