From 881a62869db13199eff30231d4299d36faf143df Mon Sep 17 00:00:00 2001 From: cions Date: Wed, 10 Jan 2024 22:04:14 +0900 Subject: fix: android support (#19437) --------- Signed-off-by: Matt Mastracci Co-authored-by: Matt Mastracci --- ext/node/polyfills/_util/os.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'ext/node/polyfills/_util') 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"; -- cgit v1.2.3