mirror of
https://github.com/denoland/deno.git
synced 2025-07-24 05:35:33 +00:00
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"
This commit is contained in:
parent
99a0c6df79
commit
2d1b39bef3
20 changed files with 188 additions and 199 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue