pub fn execute_module(
scope: &mut HandleScope<'_>,
bridge_ctx: &BridgeCallContext,
bridge_code: &str,
user_code: &str,
file_path: Option<&str>,
bridge_cache: &mut Option<BridgeCodeCache>,
) -> (i32, Option<Vec<u8>>, Option<ExecutionError>)Expand description
Execute user code as an ES module (mode=‘run’).
Runs bridge_code as CJS IIFE first (if non-empty), then compiles and runs
user_code as a v8::Module. The ResolveModuleCallback sends sync-blocking IPC
calls via BridgeCallContext to resolve import specifiers and load sources.
Returns (exit_code, serialized_exports, error).
The bridge_cache parameter enables code caching for repeated bridge compilations.