Skip to content

Commit e527321

Browse files
ashleysimpsonjasnell
authored andcommitted
test: inline common module boolean
PR-URL: #23479 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 2ca7aeb commit e527321

File tree

4 files changed

+1
-10
lines changed

4 files changed

+1
-10
lines changed

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

+1-1
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

-5
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

-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ const isMainThread = (() => {
4646
})();
4747

4848
const isWindows = process.platform === 'win32';
49-
const isWOW64 = isWindows && (process.env.PROCESSOR_ARCHITEW6432 !== undefined);
5049
const isAIX = process.platform === 'aix';
5150
const isLinuxPPCBE = (process.platform === 'linux') &&
5251
(process.arch === 'ppc64') &&
@@ -721,7 +720,6 @@ module.exports = {
721720
isOSX,
722721
isSunOS,
723722
isWindows,
724-
isWOW64,
725723
localIPv6Hosts,
726724
mustCall,
727725
mustCallAsync,

test/common/index.mjs

-2
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)