mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net> PR-URL: https://github.com/nodejs/node/pull/64721 Fixes: https://github.com/nodejs/diagnostics/issues/654 Refs: https://github.com/nodejs/node/pull/64565 Reviewed-By: Aviv Keller <me@aviv.sh> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: James M Snell <jasnell@gmail.com>
119 lines
1.9 KiB
JavaScript
119 lines
1.9 KiB
JavaScript
import { createRequire } from 'module';
|
|
|
|
const require = createRequire(import.meta.url);
|
|
const common = require('./index.js');
|
|
|
|
const {
|
|
allowGlobals,
|
|
buildType,
|
|
canCreateSymLink,
|
|
childShouldThrowAndAbort,
|
|
enoughTestMem,
|
|
escapePOSIXShell,
|
|
expectsError,
|
|
expectWarning,
|
|
getArrayBufferViews,
|
|
getBufferSources,
|
|
getTTYfd,
|
|
hasCrypto,
|
|
hasDtls,
|
|
hasQuic,
|
|
hasInspector,
|
|
hasSQLite,
|
|
hasFFI,
|
|
hasLocalStorage,
|
|
hasIntl,
|
|
hasTemporal,
|
|
hasIPv6,
|
|
isAIX,
|
|
isAlive,
|
|
isFreeBSD,
|
|
isIBMi,
|
|
isInsideDirWithUnusualChars,
|
|
isLinux,
|
|
isOpenBSD,
|
|
isMacOS,
|
|
isRiscv64,
|
|
isSunOS,
|
|
isWindows,
|
|
localIPv6Hosts,
|
|
mustCall,
|
|
mustCallAtLeast,
|
|
mustNotCall,
|
|
mustNotMutateObjectDeep,
|
|
mustSucceed,
|
|
nodeProcessAborted,
|
|
parseTestMetadata,
|
|
PIPE,
|
|
platformTimeout,
|
|
printSkipMessage,
|
|
runWithInvalidFD,
|
|
skip,
|
|
skipIf32Bits,
|
|
skipIfEslintMissing,
|
|
skipIfInspectorDisabled,
|
|
skipIfSQLiteMissing,
|
|
skipIfPerfettoEnabled,
|
|
spawnPromisified,
|
|
sleepSync,
|
|
} = common;
|
|
|
|
const getPort = () => common.PORT;
|
|
|
|
export {
|
|
allowGlobals,
|
|
buildType,
|
|
canCreateSymLink,
|
|
childShouldThrowAndAbort,
|
|
createRequire,
|
|
enoughTestMem,
|
|
escapePOSIXShell,
|
|
expectsError,
|
|
expectWarning,
|
|
getArrayBufferViews,
|
|
getBufferSources,
|
|
getPort,
|
|
getTTYfd,
|
|
hasCrypto,
|
|
hasDtls,
|
|
hasQuic,
|
|
hasInspector,
|
|
hasSQLite,
|
|
hasFFI,
|
|
hasLocalStorage,
|
|
hasIntl,
|
|
hasTemporal,
|
|
hasIPv6,
|
|
isAIX,
|
|
isAlive,
|
|
isFreeBSD,
|
|
isIBMi,
|
|
isInsideDirWithUnusualChars,
|
|
isLinux,
|
|
isOpenBSD,
|
|
isMacOS,
|
|
isRiscv64,
|
|
isSunOS,
|
|
isWindows,
|
|
localIPv6Hosts,
|
|
mustCall,
|
|
mustCallAtLeast,
|
|
mustNotCall,
|
|
mustNotMutateObjectDeep,
|
|
mustSucceed,
|
|
nodeProcessAborted,
|
|
parseTestMetadata,
|
|
PIPE,
|
|
platformTimeout,
|
|
printSkipMessage,
|
|
runWithInvalidFD,
|
|
skip,
|
|
skipIf32Bits,
|
|
skipIfEslintMissing,
|
|
skipIfInspectorDisabled,
|
|
skipIfSQLiteMissing,
|
|
skipIfPerfettoEnabled,
|
|
spawnPromisified,
|
|
sleepSync,
|
|
};
|