node:v8

#Import

import v8 from "nstdlib/node/v8";

Note

The API is available, but not everything works. No V8 introspection binding.

#Support

node:v8. nstd: some support; Node test suite 30% passing. Browser: not tested; export coverage 100%; Node test suite 15% passing.

  • nstd: 6/20 of Node's own eligible tests pass under nstd.
  • Browser: Loads with a minimal process object. 25 of Node's 25 exports are available. No behavior check covers it yet.

#Exports (25)

Every name Node.js exports from this module, and what you get when you read it, as a named import or as a property of the default import:

  • ✅ A value, both ways. An export that throws an error naming the missing feature also counts.
  • ⚠️ A value one way, undefined the other.
  • ❔ undefined both ways.
  • ❌ Not exported at all.
  • – Not measured.
ExportNode.jsBrowser
DefaultDeserializer✅✅
DefaultSerializer✅✅
Deserializer✅✅
GCProfiler✅✅
Serializer✅✅
cachedDataVersionTag✅✅
deserialize✅✅
getCppHeapStatistics✅✅
getHeapCodeStatistics✅✅
getHeapSnapshot✅✅
getHeapSpaceStatistics✅✅
getHeapStatistics✅✅
isStringOneByteRepresentation✅✅
promiseHooks✅✅
queryObjects✅✅
serialize✅✅
setFlagsFromString✅✅
setHeapProfileNearHeapLimit✅✅
setHeapSnapshotNearHeapLimit✅✅
startCpuProfile✅✅
startHeapProfile✅✅
startupSnapshot✅✅
stopCoverage✅✅
takeCoverage✅✅
writeHeapSnapshot✅✅

#Diagnostics

nstdlib running inside Node.js. This isn't an environment it's meant for, so it isn't shown above, but it tells a library problem from an environment one:

  • coverage: 25/25 of the host's export names answer inside host node. API only. No V8 introspection binding.
  • smoke: Imports in a clean child process.
  • node-suite: 6/24 of Node's own eligible tests pass with ./dist inside host node. A failure there and in the page is the library's, one only in the page is the engine's.