#[unsafe(no_mangle)]pub unsafe extern "C" fn JS_SetModuleExport(
_ctx: *mut JsContext,
m: *mut JsModuleDef,
export_name: *const c_char,
val: JsValue,
) -> c_intExpand description
JS_SetModuleExport: give a declared export its value, consuming val.
ยงSafety
m must come from JS_NewCModule, export_name must be NUL-terminated, and val must
be a live JSValue whose reference this call consumes.