diff options
Diffstat (limited to 'ext/node/polyfills/os.ts')
-rw-r--r-- | ext/node/polyfills/os.ts | 3 |
1 files changed, 3 insertions, 0 deletions
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"); } |