From a87ddf7ca91f443d6eb2e55e2c98d37f444cb269 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sun, 5 Apr 2026 16:41:57 -0700 Subject: [PATCH] test: export isRiscv64 from common module isRiscv64 is defined and used internally for the timeout multiplier but was not exported. Export it alongside the other platform booleans (isLinux, isFreeBSD, isPi, etc.) so tests can use common.isRiscv64 instead of inlining process.arch checks. Refs: https://github.com/nodejs/build/issues/4099 Signed-off-by: Jamie Magee --- test/common/index.js | 1 + test/common/index.mjs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/test/common/index.js b/test/common/index.js index 539e022fddfe82..85db47de3a5523 100755 --- a/test/common/index.js +++ b/test/common/index.js @@ -988,6 +988,7 @@ const common = { isOpenBSD, isMacOS, isPi, + isRiscv64, isSunOS, isWindows, localIPv6Hosts, diff --git a/test/common/index.mjs b/test/common/index.mjs index 7516eb68a53b7a..4a9d9ecbbae5c9 100644 --- a/test/common/index.mjs +++ b/test/common/index.mjs @@ -30,6 +30,7 @@ const { isLinux, isOpenBSD, isMacOS, + isRiscv64, isSunOS, isWindows, localIPv6Hosts, @@ -84,6 +85,7 @@ export { isLinux, isOpenBSD, isMacOS, + isRiscv64, isSunOS, isWindows, localIPv6Hosts,