diff options
author | VlkrS <47375452+VlkrS@users.noreply.github.com> | 2023-06-12 12:14:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-12 13:14:27 +0300 |
commit | ea97af312f73f28d2a46b49a0cea570a90810e42 (patch) | |
tree | 60cf58e479470607a9244285779a6bb31cae3038 /ext/node/polyfills/os.ts | |
parent | 7f15126f23d97f20a4fb33e43136cd4d13825863 (diff) |
feat: Adaptations to support OpenBSD port (#19153)
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"); } |