summaryrefslogtreecommitdiff
path: root/cli/js
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js')
-rw-r--r--cli/js/deno.ts2
-rw-r--r--cli/js/lib.deno.unstable.d.ts12
-rw-r--r--cli/js/ops/os.ts4
3 files changed, 1 insertions, 17 deletions
diff --git a/cli/js/deno.ts b/cli/js/deno.ts
index e4211c23d..5bc69fc7b 100644
--- a/cli/js/deno.ts
+++ b/cli/js/deno.ts
@@ -53,7 +53,7 @@ export {
export { metrics, Metrics } from "./ops/runtime.ts";
export { mkdirSync, mkdir, MkdirOptions } from "./ops/fs/mkdir.ts";
export { connect, listen, Listener, Conn } from "./net.ts";
-export { dir, env, exit, execPath, osName } from "./ops/os.ts";
+export { env, exit, execPath } from "./ops/os.ts";
export { run, RunOptions, Process, ProcessStatus } from "./process.ts";
export { DirEntry, readDirSync, readDir } from "./ops/fs/read_dir.ts";
export { readFileSync, readFile } from "./read_file.ts";
diff --git a/cli/js/lib.deno.unstable.d.ts b/cli/js/lib.deno.unstable.d.ts
index f425dec56..dc50416fc 100644
--- a/cli/js/lib.deno.unstable.d.ts
+++ b/cli/js/lib.deno.unstable.d.ts
@@ -32,18 +32,6 @@ declare namespace Deno {
* Requires `allow-read` and `allow-write` permissions. */
export function linkSync(oldpath: string, newpath: string): void;
- /**
- * Returns the os name.
- *
- * ```ts
- * console.log(Deno.osName()); // e.g. "Linux"
- * ```
- *
- */
-
- export function osName(): string;
-
- /** Creates `newpath` as a hard link to `oldpath`.
/** **UNSTABLE**: This API needs a security review.
*
* Creates `newpath` as a hard link to `oldpath`.
diff --git a/cli/js/ops/os.ts b/cli/js/ops/os.ts
index 915106495..e63d8b358 100644
--- a/cli/js/ops/os.ts
+++ b/cli/js/ops/os.ts
@@ -72,7 +72,3 @@ export function dir(kind: DirKind): string | null {
export function execPath(): string {
return sendSync("op_exec_path");
}
-
-export function osName(): string {
- return sendSync("op_name");
-}