napi_destroy_ark_context

Function napi_destroy_ark_context 

Source
pub unsafe extern "C" fn napi_destroy_ark_context(
    env: napi_env,
) -> napi_status
Available on crate features napi and api-20 only.
Expand description

To destroy a virtual machine context which will not be used again.

§Arguments

  • env - Virtual machine context expected to be destroyed.

§Returns

  • Returns the function execution status. [napi_ok] If the function executed successfully.

[napi_invalid_arg] If the param env is nullptr.

[napi_pending_exception] If have uncaught exception, or exception occurs in execution.

Available since API-level: 20