test: inline common module boolean

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
ashleysimpson authored and Myles Borins committed 2018-11-29 11:38:27 -05:00
1 parent 011116cc5b
commit f6e1acf9ac
4 files changed
+1 -10

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
'use strict';
const common = require('../../common');
if (common.isWOW64)
if (common.isWindows && (process.env.PROCESSOR_ARCHITEW6432 !== undefined))
common.skip('doesn\'t work on WOW64');
const fs = require('fs');
-5
View File
@@ -213,11 +213,6 @@ Platform check for SunOS.
Platform check for Windows.
### isWOW64
* [&lt;boolean>]
Platform check for Windows 32-bit on Windows 64-bit.
### localhostIPv4
* [&lt;string>]
-2
View File
@@ -47,7 +47,6 @@ const isMainThread = (() => {
})();
const isWindows = process.platform === 'win32';
const isWOW64 = isWindows && (process.env.PROCESSOR_ARCHITEW6432 !== undefined);
const isAIX = process.platform === 'aix';
const isLinuxPPCBE = (process.platform === 'linux') &&
(process.arch === 'ppc64') &&
@@ -720,7 +719,6 @@ module.exports = {
isOSX,
isSunOS,
isWindows,
isWOW64,
localIPv6Hosts,
mustCall,
mustCallAsync,
-2
View File
@@ -5,7 +5,6 @@ import common from './index.js';
const {
isMainThread,
isWindows,
isWOW64,
isAIX,
isLinuxPPCBE,
isSunOS,
@@ -54,7 +53,6 @@ const {
export {
isMainThread,
isWindows,
isWOW64,
isAIX,
isLinuxPPCBE,
isSunOS,