#[unsafe(no_mangle)]pub unsafe extern "C" fn JS_GetModuleNamespace(
ctx: *mut JsContext,
m: *mut JsModuleDef,
) -> JsValueExpand description
JS_GetModuleNamespace: the module namespace object.
An engine module’s namespace is the one its evaluation produced, reachable as the value the
module’s exports were recorded under. A C module has no namespace object in this engine —
its exports are handed to the loader as a BTreeMap and installed as bindings — so this
answers a plain object holding the exports, which is the closest thing that exists and is
what a caller inspecting the namespace would want to see.
§Safety
m must come from JS_NewCModule.