pub unsafe extern "C" fn napi_switch_ark_context(
env: napi_env,
) -> napi_statusAvailable on crate features
napi and api-20 only.Expand description
To switch a virtual machine context which is expected to be used later.
§Arguments
env- Designated Virtual machine context which is expected to be used as the current virtual machine context.
§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