pub fn execute_script(
scope: &mut HandleScope<'_>,
bridge_code: &str,
user_code: &str,
bridge_cache: &mut Option<BridgeCodeCache>,
) -> (i32, Option<ExecutionError>)Expand description
Execute user code as a CJS script (mode=‘exec’).
Runs bridge_code as IIFE first (if non-empty), then compiles and runs user_code
via v8::Script. Returns (exit_code, error) — exit code 0 on success, 1 on error.
The bridge_cache parameter enables code caching for repeated bridge compilations.