From ebf12a6ab81e3c9a42e24f2b84f88b9aefa3ce91 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 75af09c1fdaac3..c50057e3c5c8e7 100755 --- a/test/common/index.js +++ b/test/common/index.js @@ -996,6 +996,7 @@ const common = { isOpenBSD, isMacOS, isPi, + isRiscv64, isSunOS, isWindows, localIPv6Hosts, diff --git a/test/common/index.mjs b/test/common/index.mjs index 54eafb60ec50e3..1a2844f8604917 100644 --- a/test/common/index.mjs +++ b/test/common/index.mjs @@ -31,6 +31,7 @@ const { isLinux, isOpenBSD, isMacOS, + isRiscv64, isSunOS, isWindows, localIPv6Hosts, @@ -86,6 +87,7 @@ export { isLinux, isOpenBSD, isMacOS, + isRiscv64, isSunOS, isWindows, localIPv6Hosts,