pub unsafe extern "C" fn napi_is_error(
env: napi_env,
value: napi_value,
result: *mut bool,
) -> napi_statusAvailable on crate feature
napi only.Expand description
Checks whether a ‘napi_value’ is an error object.
§Arguments
-
env- Current running virtual machine context. -
value- The value to check -
result- Boolean value that is set to true if the value represents an error object, false otherwise.
§Returns
- Returns the function execution status.
[
napi_ok] If the function executed successfully.
[napi_invalid_arg] If env, value or result is nullptr.
Available since API-level: 10