From ea97af312f73f28d2a46b49a0cea570a90810e42 Mon Sep 17 00:00:00 2001 From: VlkrS <47375452+VlkrS@users.noreply.github.com> Date: Mon, 12 Jun 2023 12:14:27 +0200 Subject: feat: Adaptations to support OpenBSD port (#19153) --- ext/node/polyfills/os.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext/node/polyfills/os.ts') diff --git a/ext/node/polyfills/os.ts b/ext/node/polyfills/os.ts index 19e8fd155..d9186159f 100644 --- a/ext/node/polyfills/os.ts +++ b/ext/node/polyfills/os.ts @@ -172,6 +172,7 @@ export function homedir(): string | null { case "linux": case "darwin": case "freebsd": + case "openbsd": return Deno.env.get("HOME") || null; default: throw Error("unreachable"); @@ -299,6 +300,8 @@ export function type(): string { return "Darwin"; case "freebsd": return "FreeBSD"; + case "openbsd": + return "OpenBSD"; default: throw Error("unreachable"); } -- cgit v1.2.3