mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
PR-URL: https://github.com/nodejs/node/pull/31933 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
98 lines
1.6 KiB
JavaScript
98 lines
1.6 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,
|
|
isFreeBSD,
|
|
isOpenBSD,
|
|
isLinux,
|
|
isOSX,
|
|
enoughTestMem,
|
|
enoughTestCpu,
|
|
rootDir,
|
|
buildType,
|
|
localIPv6Hosts,
|
|
opensslCli,
|
|
PIPE,
|
|
hasIPv6,
|
|
childShouldThrowAndAbort,
|
|
createZeroFilledFile,
|
|
platformTimeout,
|
|
allowGlobals,
|
|
mustCall,
|
|
mustCallAtLeast,
|
|
hasMultiLocalhost,
|
|
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,
|
|
isFreeBSD,
|
|
isOpenBSD,
|
|
isLinux,
|
|
isOSX,
|
|
enoughTestMem,
|
|
enoughTestCpu,
|
|
rootDir,
|
|
buildType,
|
|
localIPv6Hosts,
|
|
opensslCli,
|
|
PIPE,
|
|
hasIPv6,
|
|
childShouldThrowAndAbort,
|
|
createZeroFilledFile,
|
|
platformTimeout,
|
|
allowGlobals,
|
|
mustCall,
|
|
mustCallAtLeast,
|
|
hasMultiLocalhost,
|
|
skipIfEslintMissing,
|
|
canCreateSymLink,
|
|
getCallSite,
|
|
mustNotCall,
|
|
printSkipMessage,
|
|
skip,
|
|
nodeProcessAborted,
|
|
isAlive,
|
|
expectWarning,
|
|
expectsError,
|
|
skipIfInspectorDisabled,
|
|
skipIf32Bits,
|
|
getArrayBufferViews,
|
|
getBufferSources,
|
|
disableCrashOnUnhandledRejection,
|
|
getTTYfd,
|
|
runWithInvalidFD,
|
|
createRequire
|
|
};
|