Skip to main content

JS_ResolveModule

Function JS_ResolveModule 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_ResolveModule( _ctx: *mut JsContext, _obj: JsValue, ) -> c_int
Expand description

JS_ResolveModule: resolve a module’s imports, without evaluating them.

The engine resolves lazily, at the first import, so there is nothing to do ahead of time. 0 is the success answer.

§Safety

obj is ignored.