From e9424bf6b59b4e27c2691b70879cb1de874f98ce Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 12 Jun 2020 09:53:53 -0400 Subject: Revert "feat: add Deno.osName()" (#6261) Deno.build.os provides the same functionality This reverts commit 6ccf9037a6b36c81ea0e6ac12d0e2dbd793f6114. --- std/node/os.ts | 4 ++-- std/node/os_test.ts | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'std') diff --git a/std/node/os.ts b/std/node/os.ts index 65b158b3f..27b054f4d 100644 --- a/std/node/os.ts +++ b/std/node/os.ts @@ -190,9 +190,9 @@ export function totalmem(): number { notImplemented(SEE_GITHUB_ISSUE); } -/** Returns the operating system name as returned by uname(3) */ +/** Not yet implemented */ export function type(): string { - return Deno.osName(); + notImplemented(SEE_GITHUB_ISSUE); } /** Not yet implemented */ diff --git a/std/node/os_test.ts b/std/node/os_test.ts index c67879d23..f0b9ca79d 100644 --- a/std/node/os_test.ts +++ b/std/node/os_test.ts @@ -244,6 +244,13 @@ test({ Error, "Not implemented" ); + assertThrows( + () => { + os.type(); + }, + Error, + "Not implemented" + ); assertThrows( () => { os.uptime(); -- cgit v1.2.3