pub unsafe fn add_module_export(
    ctx: *mut JSContext,
    module: *mut JSModuleDef,
    export_name: &str,
) -> Result<(), JsError>
Expand description

set an export in a JSModuleDef, this should be called BEFORE this init_func(as passed to new_module()) is called

§Safety

Please ensure the context passed is still valid