diff options
Diffstat (limited to 'ext/node/polyfills/_util/os.ts')
-rw-r--r-- | ext/node/polyfills/_util/os.ts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ext/node/polyfills/_util/os.ts b/ext/node/polyfills/_util/os.ts index 2c01d5c6e..239419d91 100644 --- a/ext/node/polyfills/_util/os.ts +++ b/ext/node/polyfills/_util/os.ts @@ -3,9 +3,15 @@ import { core } from "ext:core/mod.js"; const ops = core.ops; -export type OSType = "windows" | "linux" | "darwin" | "freebsd" | "openbsd"; +export type OSType = + | "windows" + | "linux" + | "android" + | "darwin" + | "freebsd" + | "openbsd"; export const osType: OSType = ops.op_node_build_os(); export const isWindows = osType === "windows"; -export const isLinux = osType === "linux"; +export const isLinux = osType === "linux" || osType === "android"; |