Skip to content

Commit ebf12a6

Browse files
committed
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: nodejs/build#4099 Signed-off-by: Jamie Magee <[email protected]>
1 parent eb54e70 commit ebf12a6

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

test/common/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -996,6 +996,7 @@ const common = {
996996
isOpenBSD,
997997
isMacOS,
998998
isPi,
999+
isRiscv64,
9991000
isSunOS,
10001001
isWindows,
10011002
localIPv6Hosts,

test/common/index.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const {
3131
isLinux,
3232
isOpenBSD,
3333
isMacOS,
34+
isRiscv64,
3435
isSunOS,
3536
isWindows,
3637
localIPv6Hosts,
@@ -86,6 +87,7 @@ export {
8687
isLinux,
8788
isOpenBSD,
8889
isMacOS,
90+
isRiscv64,
8991
isSunOS,
9092
isWindows,
9193
localIPv6Hosts,

0 commit comments

Comments
 (0)