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 2018-10-12 10:01:24 -07:00 committed by Anna Henningsen
parent ff8db70bc2
commit 190d146b78
No known key found for this signature in database
GPG Key ID: 9C63F3A6CD2AD8F9
4 changed files with 1 additions and 10 deletions

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
const common = require('../../common'); const common = require('../../common');
if (common.isWOW64) if (common.isWindows && (process.env.PROCESSOR_ARCHITEW6432 !== undefined))
common.skip('doesn\'t work on WOW64'); common.skip('doesn\'t work on WOW64');
const fs = require('fs'); const fs = require('fs');

View File

@ -213,11 +213,6 @@ Platform check for SunOS.
Platform check for Windows. Platform check for Windows.
### isWOW64
* [&lt;boolean>]
Platform check for Windows 32-bit on Windows 64-bit.
### localhostIPv4 ### localhostIPv4
* [&lt;string>] * [&lt;string>]

View File

@ -46,7 +46,6 @@ const isMainThread = (() => {
})(); })();
const isWindows = process.platform === 'win32'; const isWindows = process.platform === 'win32';
const isWOW64 = isWindows && (process.env.PROCESSOR_ARCHITEW6432 !== undefined);
const isAIX = process.platform === 'aix'; const isAIX = process.platform === 'aix';
const isLinuxPPCBE = (process.platform === 'linux') && const isLinuxPPCBE = (process.platform === 'linux') &&
(process.arch === 'ppc64') && (process.arch === 'ppc64') &&
@ -721,7 +720,6 @@ module.exports = {
isOSX, isOSX,
isSunOS, isSunOS,
isWindows, isWindows,
isWOW64,
localIPv6Hosts, localIPv6Hosts,
mustCall, mustCall,
mustCallAsync, mustCallAsync,

View File

@ -5,7 +5,6 @@ import common from './index.js';
const { const {
isMainThread, isMainThread,
isWindows, isWindows,
isWOW64,
isAIX, isAIX,
isLinuxPPCBE, isLinuxPPCBE,
isSunOS, isSunOS,
@ -54,7 +53,6 @@ const {
export { export {
isMainThread, isMainThread,
isWindows, isWindows,
isWOW64,
isAIX, isAIX,
isLinuxPPCBE, isLinuxPPCBE,
isSunOS, isSunOS,