current commit
260907.1 · src: support building with the V8 sandbox
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,
  hasV8Sandbox,
  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,
  hasV8Sandbox,
  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,
};