Skip to content

Commit d7609a7

Browse files
ashleysimpsonMylesBorins
authored andcommitted
test: inline common module boolean
PR-URL: #23479 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 45fbcbb commit d7609a7

File tree

4 files changed

+1
-10
lines changed

4 files changed

+1
-10
lines changed

test/addons/load-long-path/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22
const common = require('../../common');
3-
if (common.isWOW64)
3+
if (common.isWindows && (process.env.PROCESSOR_ARCHITEW6432 !== undefined))
44
common.skip('doesn\'t work on WOW64');
55

66
const fs = require('fs');

test/common/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,6 @@ Platform check for SunOS.
213213

214214
Platform check for Windows.
215215

216-
### isWOW64
217-
* [&lt;boolean>]
218-
219-
Platform check for Windows 32-bit on Windows 64-bit.
220-
221216
### localhostIPv4
222217
* [&lt;string>]
223218

test/common/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ const isMainThread = (() => {
4747
})();
4848

4949
const isWindows = process.platform === 'win32';
50-
const isWOW64 = isWindows && (process.env.PROCESSOR_ARCHITEW6432 !== undefined);
5150
const isAIX = process.platform === 'aix';
5251
const isLinuxPPCBE = (process.platform === 'linux') &&
5352
(process.arch === 'ppc64') &&
@@ -720,7 +719,6 @@ module.exports = {
720719
isOSX,
721720
isSunOS,
722721
isWindows,
723-
isWOW64,
724722
localIPv6Hosts,
725723
mustCall,
726724
mustCallAsync,

test/common/index.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import common from './index.js';
55
const {
66
isMainThread,
77
isWindows,
8-
isWOW64,
98
isAIX,
109
isLinuxPPCBE,
1110
isSunOS,
@@ -54,7 +53,6 @@ const {
5453
export {
5554
isMainThread,
5655
isWindows,
57-
isWOW64,
5856
isAIX,
5957
isLinuxPPCBE,
6058
isSunOS,

0 commit comments

Comments
 (0)