pub unsafe extern "C" fn napi_create_ark_context(
env: napi_env,
newEnv: *mut napi_env,
) -> napi_statusAvailable on crate features
napi and api-20 only.Expand description
To create a new virtual machine context.
§Arguments
-
env- Current running virtual machine context. -
newEnv- New generated virtual machine context which is expected to be used later.
§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