Use the --unhandled-rejections=none CLI flag instead. PR-URL: https://github.com/nodejs/node/pull/38210 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
97 lines
1.6 KiB
JavaScript
97 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,
|
|
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,
|
|
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,
|
|
getTTYfd,
|
|
runWithInvalidFD,
|
|
createRequire
|
|
};
|