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

set an export in a JSModuleDef, this should be called AFTER the init_func(as passed to new_module()) is called please note that you always need to use this in combination with add_module_export()

§Safety

Please ensure the context passed is still valid