Skip to content

Commit a0f9000

Browse files
JamieMageeaduh95
authored andcommitted
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> PR-URL: #62609 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com>
1 parent b6219b6 commit a0f9000

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
@@ -951,6 +951,7 @@ const common = {
951951
isOpenBSD,
952952
isMacOS,
953953
isPi,
954+
isRiscv64,
954955
isSunOS,
955956
isWindows,
956957
localIPv6Hosts,

test/common/index.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const {
2828
isLinux,
2929
isOpenBSD,
3030
isMacOS,
31+
isRiscv64,
3132
isSunOS,
3233
isWindows,
3334
localIPv6Hosts,
@@ -80,6 +81,7 @@ export {
8081
isLinux,
8182
isOpenBSD,
8283
isMacOS,
84+
isRiscv64,
8385
isSunOS,
8486
isWindows,
8587
localIPv6Hosts,

0 commit comments

Comments
 (0)