pub fn replace_bridge_fns(
scope: &mut HandleScope<'_>,
ctx: *const BridgeCallContext,
pending: *const PendingPromises,
sync_fns: &[&str],
async_fns: &[&str],
) -> (BridgeFnStore, AsyncBridgeFnStore)Expand description
Replace stub bridge functions on a snapshot-restored context with real session-local bridge functions. Overwrites the 38 stub globals with functions backed by session-local BridgeCallContext.
Returns (BridgeFnStore, AsyncBridgeFnStore) that must be kept alive for the lifetime of the V8 context.