mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 00:20:08 +01:00
- Migrated to ESM because some dependencies now require it. - Did not update `highlight.js` to v11 because it has many breaking changes. - Used non-deprecated `highlight.js` API. Refs: https://github.com/highlightjs/highlight.js/issues/2277 Fixes: https://github.com/nodejs/node/issues/38938 Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: https://github.com/nodejs/node/pull/38966 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
102 lines
1.7 KiB
JavaScript
102 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,
|
|
mustSucceed,
|
|
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,
|
|
mustSucceed,
|
|
hasMultiLocalhost,
|
|
skipIfDumbTerminal,
|
|
skipIfEslintMissing,
|
|
canCreateSymLink,
|
|
getCallSite,
|
|
mustNotCall,
|
|
printSkipMessage,
|
|
skip,
|
|
nodeProcessAborted,
|
|
isAlive,
|
|
expectWarning,
|
|
expectsError,
|
|
skipIfInspectorDisabled,
|
|
skipIf32Bits,
|
|
getArrayBufferViews,
|
|
getBufferSources,
|
|
disableCrashOnUnhandledRejection,
|
|
getTTYfd,
|
|
runWithInvalidFD,
|
|
createRequire
|
|
};
|