pub unsafe fn instantiate(
context: &JsContext,
definition: &mut JsModuleDef,
) -> Result<Vec<(String, Value)>, String>Expand description
Run a module’s init function and collect what it exported.
§Safety
definition must be a live definition from JS_NewCModule whose context is still alive.