mirror of
https://github.com/nodejs/node.git
synced 2024-11-28 14:33:11 +01:00
a65e4418e5
PR-URL: https://github.com/nodejs/node/pull/54947 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
109 lines
1.7 KiB
JavaScript
109 lines
1.7 KiB
JavaScript
import { createRequire } from 'module';
|
|
|
|
const require = createRequire(import.meta.url);
|
|
const common = require('./index.js');
|
|
|
|
const {
|
|
allowGlobals,
|
|
buildType,
|
|
canCreateSymLink,
|
|
checkoutEOL,
|
|
childShouldThrowAndAbort,
|
|
createZeroFilledFile,
|
|
enoughTestMem,
|
|
expectsError,
|
|
expectWarning,
|
|
getArrayBufferViews,
|
|
getBufferSources,
|
|
getTTYfd,
|
|
hasCrypto,
|
|
hasIntl,
|
|
hasIPv6,
|
|
hasMultiLocalhost,
|
|
isAIX,
|
|
isAlive,
|
|
isDumbTerminal,
|
|
isFreeBSD,
|
|
isIBMi,
|
|
isLinux,
|
|
isLinuxPPCBE,
|
|
isMainThread,
|
|
isOpenBSD,
|
|
isMacOS,
|
|
isSunOS,
|
|
isWindows,
|
|
localIPv6Hosts,
|
|
mustCall,
|
|
mustCallAtLeast,
|
|
mustNotCall,
|
|
mustNotMutateObjectDeep,
|
|
mustSucceed,
|
|
nodeProcessAborted,
|
|
opensslCli,
|
|
parseTestFlags,
|
|
PIPE,
|
|
platformTimeout,
|
|
printSkipMessage,
|
|
runWithInvalidFD,
|
|
skip,
|
|
skipIf32Bits,
|
|
skipIfDumbTerminal,
|
|
skipIfEslintMissing,
|
|
skipIfInspectorDisabled,
|
|
spawnPromisified,
|
|
} = common;
|
|
|
|
const getPort = () => common.PORT;
|
|
|
|
export {
|
|
allowGlobals,
|
|
buildType,
|
|
canCreateSymLink,
|
|
checkoutEOL,
|
|
childShouldThrowAndAbort,
|
|
createRequire,
|
|
createZeroFilledFile,
|
|
enoughTestMem,
|
|
expectsError,
|
|
expectWarning,
|
|
getArrayBufferViews,
|
|
getBufferSources,
|
|
getPort,
|
|
getTTYfd,
|
|
hasCrypto,
|
|
hasIntl,
|
|
hasIPv6,
|
|
hasMultiLocalhost,
|
|
isAIX,
|
|
isAlive,
|
|
isDumbTerminal,
|
|
isFreeBSD,
|
|
isIBMi,
|
|
isLinux,
|
|
isLinuxPPCBE,
|
|
isMainThread,
|
|
isOpenBSD,
|
|
isMacOS,
|
|
isSunOS,
|
|
isWindows,
|
|
localIPv6Hosts,
|
|
mustCall,
|
|
mustCallAtLeast,
|
|
mustNotCall,
|
|
mustNotMutateObjectDeep,
|
|
mustSucceed,
|
|
nodeProcessAborted,
|
|
opensslCli,
|
|
parseTestFlags,
|
|
PIPE,
|
|
platformTimeout,
|
|
printSkipMessage,
|
|
runWithInvalidFD,
|
|
skip,
|
|
skipIf32Bits,
|
|
skipIfDumbTerminal,
|
|
skipIfEslintMissing,
|
|
skipIfInspectorDisabled,
|
|
spawnPromisified,
|
|
};
|