Skip to content

Commit f843eea

Browse files
JamieMageejuanarbol
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 626c541 commit f843eea

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
@@ -903,6 +903,7 @@ const common = {
903903
isOpenBSD,
904904
isMacOS,
905905
isPi,
906+
isRiscv64,
906907
isSunOS,
907908
isWindows,
908909
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,
@@ -79,6 +80,7 @@ export {
7980
isLinux,
8081
isOpenBSD,
8182
isMacOS,
83+
isRiscv64,
8284
isSunOS,
8385
isWindows,
8486
localIPv6Hosts,

0 commit comments

Comments
 (0)