Structs§
- Bridge
Code Cache - Cached V8 code cache data for bridge code compilation.
Traits§
- Guest
Module Reader - Thread-local state for module resolution during execute_module. Avoids passing user data through V8’s ResolveModuleCallback (which is a plain fn pointer). Direct, in-process module source reader living on the V8 session thread.
Functions§
- clear_
module_ state - clear_
pending_ module_ evaluation - clear_
pending_ script_ evaluation - dynamic_
import_ callback - execute_
module - Execute user code as an ES module (mode=‘run’).
- execute_
script - Execute user code as a CJS script (mode=‘exec’).
- execute_
script_ with_ options - extract_
process_ exit_ code - Check if a V8 exception is a ProcessExitError (has
_isProcessExit: truesentinel). ReturnsSome(exit_code)if detected,Noneotherwise. - finalize_
pending_ module_ evaluation - finalize_
pending_ script_ evaluation - has_
pending_ module_ evaluation - has_
pending_ script_ evaluation - import_
meta_ object_ callback - Callback invoked by V8 when
import.metais accessed in an ES module. Setsimport.meta.urlto afile://URL derived from the module’s resource name. - inject_
globals_ from_ payload - Inject globals from a V8-serialized payload containing { processConfig, osConfig }.
- install_
high_ resolution_ time_ global - install_
session_ guest_ reader - Install (or clear) the direct module reader for the current session thread.
Called by the session thread when it receives a
SetModuleReadercommand; the nextexecute_modulemoves it into the resolve state. Must be called on the session/isolate thread. - pending_
module_ evaluation_ needs_ wait - pending_
script_ evaluation_ needs_ wait - run_
init_ script - Run a short init script (e.g. post-restore config). Compiles and executes via v8::Script, returning (exit_code, error) on failure. No code caching.
- set_
pending_ script_ evaluation