pub unsafe extern "C" fn napi_get_prototype(
env: napi_env,
object: napi_value,
result: *mut napi_value,
) -> napi_statusAvailable on crate feature
napi only.Expand description
Obtains the prototype of an ArkTS object.
§Arguments
-
env- Current running virtual machine context. -
object- The napi_value representing an ArkTS Object whose prototype to return. -
result- A napi_value representing prototype of the object.
§Returns
- Returns the function execution status.
[
napi_ok] If the function executed successfully.
[napi_invalid_arg] If the param env, object or result is nullptr;
[napi_pending_exception] There is an uncaught exception occurred before(in) execution.
Available since API-level: 10