pub unsafe extern "C" fn napi_load_module(
env: napi_env,
path: *const c_char,
result: *mut napi_value,
) -> napi_statusAvailable on crate features
napi and api-11 only.Expand description
Loads an .abc file as a module. This API returns the namespace of the module.
§Arguments
-
env- Current running virtual machine context. -
path- Path of the .abc file or name of the module to load. -
result- Result of the module object.
§Returns
- Returns the function execution status.
Available since API-level: 11