Skip to content

Commit fdb883e

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 <jamie.magee@gmail.com>
1 parent 8a48913 commit fdb883e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

test/common/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,7 @@ const common = {
988988
isOpenBSD,
989989
isMacOS,
990990
isPi,
991+
isRiscv64,
991992
isSunOS,
992993
isWindows,
993994
localIPv6Hosts,

test/common/index.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const {
3030
isLinux,
3131
isOpenBSD,
3232
isMacOS,
33+
isRiscv64,
3334
isSunOS,
3435
isWindows,
3536
localIPv6Hosts,
@@ -84,6 +85,7 @@ export {
8485
isLinux,
8586
isOpenBSD,
8687
isMacOS,
88+
isRiscv64,
8789
isSunOS,
8890
isWindows,
8991
localIPv6Hosts,

0 commit comments

Comments
 (0)