Skip to main content

exports_of

Function exports_of 

Source
pub unsafe fn exports_of(
    context: &JsContext,
    definition: *mut JsModuleDef,
) -> Result<Vec<(String, Value)>, String>
Expand description

The JSModuleDef a native module’s entry point answered, for a caller that has it.

Exposed because a host that loads modules itself — rather than through load_native_module — needs to finish the same way.

§Safety

definition must be a live definition from JS_NewCModule.