mirror of https://gitee.com/openkylin/nodejs.git
100 lines
1.7 KiB
JavaScript
100 lines
1.7 KiB
JavaScript
/* eslint-disable node-core/require-common-first, node-core/required-modules */
|
|
|
|
import { createRequire } from 'module';
|
|
|
|
const require = createRequire(import.meta.url);
|
|
const common = require('./index.js');
|
|
|
|
const {
|
|
isMainThread,
|
|
isWindows,
|
|
isAIX,
|
|
isIBMi,
|
|
isLinuxPPCBE,
|
|
isSunOS,
|
|
isDumbTerminal,
|
|
isFreeBSD,
|
|
isOpenBSD,
|
|
isLinux,
|
|
isOSX,
|
|
enoughTestMem,
|
|
enoughTestCpu,
|
|
buildType,
|
|
localIPv6Hosts,
|
|
opensslCli,
|
|
PIPE,
|
|
hasIPv6,
|
|
childShouldThrowAndAbort,
|
|
createZeroFilledFile,
|
|
platformTimeout,
|
|
allowGlobals,
|
|
mustCall,
|
|
mustCallAtLeast,
|
|
hasMultiLocalhost,
|
|
skipIfDumbTerminal,
|
|
skipIfEslintMissing,
|
|
canCreateSymLink,
|
|
getCallSite,
|
|
mustNotCall,
|
|
printSkipMessage,
|
|
skip,
|
|
nodeProcessAborted,
|
|
isAlive,
|
|
expectWarning,
|
|
expectsError,
|
|
skipIfInspectorDisabled,
|
|
skipIf32Bits,
|
|
getArrayBufferViews,
|
|
getBufferSources,
|
|
disableCrashOnUnhandledRejection,
|
|
getTTYfd,
|
|
runWithInvalidFD
|
|
} = common;
|
|
|
|
export {
|
|
isMainThread,
|
|
isWindows,
|
|
isAIX,
|
|
isIBMi,
|
|
isLinuxPPCBE,
|
|
isSunOS,
|
|
isDumbTerminal,
|
|
isFreeBSD,
|
|
isOpenBSD,
|
|
isLinux,
|
|
isOSX,
|
|
enoughTestMem,
|
|
enoughTestCpu,
|
|
buildType,
|
|
localIPv6Hosts,
|
|
opensslCli,
|
|
PIPE,
|
|
hasIPv6,
|
|
childShouldThrowAndAbort,
|
|
createZeroFilledFile,
|
|
platformTimeout,
|
|
allowGlobals,
|
|
mustCall,
|
|
mustCallAtLeast,
|
|
hasMultiLocalhost,
|
|
skipIfDumbTerminal,
|
|
skipIfEslintMissing,
|
|
canCreateSymLink,
|
|
getCallSite,
|
|
mustNotCall,
|
|
printSkipMessage,
|
|
skip,
|
|
nodeProcessAborted,
|
|
isAlive,
|
|
expectWarning,
|
|
expectsError,
|
|
skipIfInspectorDisabled,
|
|
skipIf32Bits,
|
|
getArrayBufferViews,
|
|
getBufferSources,
|
|
disableCrashOnUnhandledRejection,
|
|
getTTYfd,
|
|
runWithInvalidFD,
|
|
createRequire
|
|
};
|