Node-API Status Codes
Overview
Specifically, most Node-APIs return a status code enumeration of the napi_status type, indicating whether the operation is successful. This topic describes the non-napi_ok status codes returned by Node-APIs and troubleshooting suggestions.
Non-napi_ok Status Codes
| API | Description | Non-napi_ok Status Code | Cause | Solution |
|---|---|---|---|---|
| napi_module_register | Registers a native module. | N/A | N/A | N/A |
| napi_get_last_error_info | Obtains the napi_extended_error_info struct, which contains the latest error information. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_last_error_info | Obtains the napi_extended_error_info struct, which contains the latest error information. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_throw | Throws an ArkTS error. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_throw | Throws an ArkTS error. | napi_invalid_arg | The input parameter error is nullptr. | Ensure that the input parameter is correct. |
| napi_throw | Throws an ArkTS error. | napi_invalid_arg | The input parameter error is not of the ArkTS Error type. | Ensure that the input parameter is correct. |
| napi_throw_error | Throws an ArkTS error with text information. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_throw_error | Throws an ArkTS error with text information. | napi_invalid_arg | The input parameter msg is nullptr. | Ensure that the input parameter is correct. |
| napi_throw_business_error | Throws an ArkTS error with text information, where the code property of the error object is of the number type. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_throw_business_error | Throws an ArkTS error with text information, where the code property of the error object is of the number type. | napi_invalid_arg | The input parameter msg is nullptr. | Ensure that the input parameter is correct. |
| napi_throw_business_error | Throws an ArkTS error with text information, where the code property of the error object is of the number type. | napi_pending_exception | An uncaught ArkTS error occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_throw_type_error | Throws an ArkTS TypeError with text information. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_throw_type_error | Throws an ArkTS TypeError with text information. | napi_invalid_arg | The input parameter msg is nullptr. | Ensure that the input parameter is correct. |
| napi_throw_range_error | Throws an ArkTS RangeError with text information. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_throw_range_error | Throws an ArkTS RangeError with text information. | napi_invalid_arg | The input parameter msg is nullptr. | Ensure that the input parameter is correct. |
| napi_is_error | Checks whether napi_value indicates an error object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_is_error | Checks whether napi_value indicates an error object. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_is_error | Checks whether napi_value indicates an error object. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_error | Creates an ArkTS error object with text information. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_error | Creates an ArkTS error object with text information. | napi_invalid_arg | The input parameter msg is nullptr. | Ensure that the input parameter is correct. |
| napi_create_error | Creates an ArkTS error object with text information. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_error | Creates an ArkTS error object with text information. | napi_invalid_arg | The input parameter code is not nullptr, but is not of the ArkTS string or ArkTS number type. | Ensure that the input parameter is correct. |
| napi_create_error | Creates an ArkTS error object with text information. | napi_invalid_arg | The input parameter msg is not nullptr, but is not of the ArkTS string type. | Ensure that the input parameter is correct. |
| napi_create_type_error | Creates an ArkTS TypeError with text information. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_type_error | Creates an ArkTS TypeError with text information. | napi_invalid_arg | The input parameter msg is nullptr. | Ensure that the input parameter is correct. |
| napi_create_type_error | Creates an ArkTS TypeError with text information. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_type_error | Creates an ArkTS TypeError with text information. | napi_invalid_arg | The input parameter code is not nullptr, but is not of the ArkTS string or ArkTS number type. | Ensure that the input parameter is correct. |
| napi_create_type_error | Creates an ArkTS TypeError with text information. | napi_invalid_arg | The input parameter msg is not nullptr, but is not of the ArkTS string type. | Ensure that the input parameter is correct. |
| napi_create_range_error | Creates an ArkTS RangeError with text information. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_range_error | Creates an ArkTS RangeError with text information. | napi_invalid_arg | The input parameter msg is nullptr. | Ensure that the input parameter is correct. |
| napi_create_range_error | Creates an ArkTS RangeError with text information. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_range_error | Creates an ArkTS RangeError with text information. | napi_invalid_arg | The input parameter code is not nullptr, but is not of the ArkTS string or ArkTS number type. | Ensure that the input parameter is correct. |
| napi_create_range_error | Creates an ArkTS RangeError with text information. | napi_invalid_arg | The input parameter msg is not nullptr, but is not of the ArkTS string type. | Ensure that the input parameter is correct. |
| napi_get_and_clear_last_exception | Obtains and clears the latest exception. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_and_clear_last_exception | Obtains and clears the latest exception. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_is_exception_pending | Checks whether an exception occurs. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_is_exception_pending | Checks whether an exception occurs. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_fatal_error | Raises a fatal error to terminate the process immediately. | N/A | N/A | N/A |
| napi_open_handle_scope | Opens a scope. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_open_handle_scope | Opens a scope. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_close_handle_scope | Closes the scope passed in. After a scope is closed, all references declared in it are closed. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_close_handle_scope | Closes the scope passed in. After a scope is closed, all references declared in it are closed. | napi_invalid_arg | The input parameter scope is nullptr. | Ensure that the input parameter is correct. |
| napi_close_handle_scope | Closes the scope passed in. After a scope is closed, all references declared in it are closed. | napi_handle_scope_mismatch | napi_open_handle_scope is called fewer times than napi_close_handle_scope. | Use napi_open_handle_scope and napi_close_handle_scope in pairs. |
| napi_open_escapable_handle_scope | Opens an escapable handle scope, from which the declared values can be returned to the parent scope. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_open_escapable_handle_scope | Opens an escapable handle scope, from which the declared values can be returned to the parent scope. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_close_escapable_handle_scope | Closes the escapable handle scope passed in. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_close_escapable_handle_scope | Closes the escapable handle scope passed in. | napi_invalid_arg | The input parameter scope is nullptr. | Ensure that the input parameter is correct. |
| napi_close_escapable_handle_scope | Closes the escapable handle scope passed in. | napi_handle_scope_mismatch | napi_open_escapable_handle_scope is called fewer times than napi_close_escapable_handle_scope. | Use napi_open_escapable_handle_scope and napi_close_escapable_handle_scope in pairs. |
| napi_escape_handle | Promotes the handle to the input ArkTS object so that it is valid for the lifespan of its parent scope. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_escape_handle | Promotes the handle to the input ArkTS object so that it is valid for the lifespan of its parent scope. | napi_invalid_arg | The input parameter scope is nullptr. | Ensure that the input parameter is correct. |
| napi_escape_handle | Promotes the handle to the input ArkTS object so that it is valid for the lifespan of its parent scope. | napi_invalid_arg | The input parameter escapee is nullptr. | Ensure that the input parameter is correct. |
| napi_escape_handle | Promotes the handle to the input ArkTS object so that it is valid for the lifespan of its parent scope. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_escape_handle | Promotes the handle to the input ArkTS object so that it is valid for the lifespan of its parent scope. | napi_escape_called_twice | The scope has called napi_escape_handle. | Do not call napi_escape_handle repeatedly. |
| napi_create_reference | Creates a reference for an object to extend its lifespan. The caller needs to manage the reference lifespan. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_reference | Creates a reference for an object to extend its lifespan. The caller needs to manage the reference lifespan. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_create_reference | Creates a reference for an object to extend its lifespan. The caller needs to manage the reference lifespan. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_delete_reference | Deletes the reference passed in. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_delete_reference | Deletes the reference passed in. | napi_invalid_arg | The input parameter ref is nullptr. | Ensure that the input parameter is correct. |
| napi_reference_ref | Increments the reference count for the reference passed in and returns the count. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_reference_ref | Increments the reference count for the reference passed in and returns the count. | napi_invalid_arg | The input parameter ref is nullptr. | Ensure that the input parameter is correct. |
| napi_reference_unref | Decrements the reference count for the reference passed in and returns the count. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_reference_unref | Decrements the reference count for the reference passed in and returns the count. | napi_invalid_arg | The input parameter ref is nullptr. | Ensure that the input parameter is correct. |
| napi_get_reference_value | Obtains the ArkTS object associated with the reference. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_reference_value | Obtains the ArkTS object associated with the reference. | napi_invalid_arg | The input parameter ref is nullptr. | Ensure that the input parameter is correct. |
| napi_get_reference_value | Obtains the ArkTS object associated with the reference. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_array | Creates an ArkTS array. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_array | Creates an ArkTS array. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_array_with_length | Creates an ArkTS array of the specified length. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_array_with_length | Creates an ArkTS array of the specified length. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_arraybuffer | Creates an ArkTS ArrayBuffer of the specified size. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_arraybuffer | Creates an ArkTS ArrayBuffer of the specified size. | napi_invalid_arg | The input parameter data is nullptr. | Ensure that the input parameter is correct. |
| napi_create_arraybuffer | Creates an ArkTS ArrayBuffer of the specified size. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_arraybuffer | Creates an ArkTS ArrayBuffer of the specified size. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_create_external | Creates an ArkTS value with external data. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_external | Creates an ArkTS value with external data. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_external | Creates an ArkTS value with external data. | napi_pending_exception | An uncaught ArkTS exception occurs before the API is called. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_create_external_arraybuffer | Creates an ArkTS ArrayBuffer with external data. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_external_arraybuffer | Creates an ArkTS ArrayBuffer with external data. | napi_invalid_arg | The input parameter external_data is nullptr. | Ensure that the input parameter is correct. |
| napi_create_external_arraybuffer | Creates an ArkTS ArrayBuffer with external data. | napi_invalid_arg | The input parameter finalize_cb is nullptr. | Ensure that the input parameter is correct. |
| napi_create_external_arraybuffer | Creates an ArkTS ArrayBuffer with external data. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_external_arraybuffer | Creates an ArkTS ArrayBuffer with external data. | napi_pending_exception | An uncaught ArkTS exception occurs before the API is called. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_create_object | Creates a default ArkTS object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_object | Creates a default ArkTS object. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_symbol | Creates an ArkTS symbol. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_symbol | Creates an ArkTS symbol. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_symbol | Creates an ArkTS symbol. | napi_invalid_arg | The input parameter description is neither nullptr nor a ArkTS string. | Ensure that the input parameter is correct. |
| napi_create_typedarray | Creates an ArkTS TypeArray from an existing ArrayBuffer. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_typedarray | Creates an ArkTS TypeArray from an existing ArrayBuffer. | napi_invalid_arg | The input parameter arraybuffer is nullptr. | Ensure that the input parameter is correct. |
| napi_create_typedarray | Creates an ArkTS TypeArray from an existing ArrayBuffer. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_typedarray | Creates an ArkTS TypeArray from an existing ArrayBuffer. | napi_invalid_arg | The input parameter type is not napi_typedarray_type. | Ensure that the input parameter is correct. |
| napi_create_typedarray | Creates an ArkTS TypeArray from an existing ArrayBuffer. | napi_arraybuffer_expected | The input parameter arraybuffer is not of the ArkTS ArrayBuffer type. | Ensure that the input parameter is correct. |
| napi_create_typedarray | Creates an ArkTS TypeArray from an existing ArrayBuffer. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_create_dataview | Creates an ArkTS DataView from an existing ArrayBuffer. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_dataview | Creates an ArkTS DataView from an existing ArrayBuffer. | napi_invalid_arg | The input parameter arraybuffer is nullptr. | Ensure that the input parameter is correct. |
| napi_create_dataview | Creates an ArkTS DataView from an existing ArrayBuffer. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_dataview | Creates an ArkTS DataView from an existing ArrayBuffer. | napi_arraybuffer_expected | The input parameter arraybuffer is not of the ArkTS ArrayBuffer type. | Ensure that the input parameter is correct. |
| napi_create_dataview | Creates an ArkTS DataView from an existing ArrayBuffer. | napi_pending_exception | The sum of the input parameters length and byte_offset exceeds the byte length of the input parameter arraybuffer. | Check the access length. |
| napi_create_dataview | Creates an ArkTS DataView from an existing ArrayBuffer. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_create_int32 | Creates an ArkTS number from C int32_t data. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_int32 | Creates an ArkTS number from C int32_t data. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_uint32 | Creates an ArkTS number from C uint32_t data. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_uint32 | Creates an ArkTS number from C uint32_t data. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_int64 | Creates an ArkTS number from C int64_t data. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_int64 | Creates an ArkTS number from C int64_t data. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_double | Creates an ArkTS number from C double data. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_double | Creates an ArkTS number from C double data. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_string_latin1 | Creates an ArkTS string from an ISO-8859-1-encoded C string. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_string_latin1 | Creates an ArkTS string from an ISO-8859-1-encoded C string. | napi_invalid_arg | The input parameter str is nullptr. | Ensure that the input parameter is correct. |
| napi_create_string_latin1 | Creates an ArkTS string from an ISO-8859-1-encoded C string. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_string_utf8 | Creates an ArkTS string from a UTF8-encoded C string. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_string_utf8 | Creates an ArkTS string from a UTF8-encoded C string. | napi_invalid_arg | The input parameter str is nullptr. | Ensure that the input parameter is correct. |
| napi_create_string_utf8 | Creates an ArkTS string from a UTF8-encoded C string. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_string_utf16 | Creates an ArkTS string from a UTF16-encoded C string. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_string_utf16 | Creates an ArkTS string from a UTF16-encoded C string. | napi_invalid_arg | The input parameter str is nullptr. | Ensure that the input parameter is correct. |
| napi_create_string_utf16 | Creates an ArkTS string from a UTF16-encoded C string. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_string_utf16 | Creates an ArkTS string from a UTF16-encoded C string. | napi_invalid_arg | The input parameter length is not NAPI_AUTO_LENGTH, but exceeds INT_MAX. | Ensure that the input parameter is correct. |
| napi_get_array_length | Obtains the length of an array. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_array_length | Obtains the length of an array. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_get_array_length | Obtains the length of an array. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_get_array_length | Obtains the length of an array. | napi_array_expected | The input parameter value is neither of the ArkTS array type nor of the SharedArray type. | Ensure that the input parameter is correct. |
| napi_get_array_length | Obtains the length of an array. | napi_pending_exception | An uncaught ArkTS exception occurs before the API is called. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_get_arraybuffer_info | Obtains the underlying data buffer of an ArrayBuffer and its length. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_arraybuffer_info | Obtains the underlying data buffer of an ArrayBuffer and its length. | napi_invalid_arg | The input parameter arraybuffer is nullptr. | Ensure that the input parameter is correct. |
| napi_get_arraybuffer_info | Obtains the underlying data buffer of an ArrayBuffer and its length. | napi_invalid_arg | The input parameter byte_length is nullptr. | Ensure that the input parameter is correct. |
| napi_get_arraybuffer_info | Obtains the underlying data buffer of an ArrayBuffer and its length. | napi_arraybuffer_expected | The input parameter arraybuffer is neither of the ArkTS ArrayBuffer type nor of the SharedArrayBuffer type. | Ensure that the input parameter is correct. |
| napi_get_prototype | Obtains the prototype of an ArkTS object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_prototype | Obtains the prototype of an ArkTS object. | napi_invalid_arg | The input parameter object is nullptr. | Ensure that the input parameter is correct. |
| napi_get_prototype | Obtains the prototype of an ArkTS object. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_get_prototype | Obtains the prototype of an ArkTS object. | napi_object_expected | The input parameter object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_get_prototype | Obtains the prototype of an ArkTS object. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_get_typedarray_info | Obtains the properties of a TypedArray. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_typedarray_info | Obtains the properties of a TypedArray. | napi_invalid_arg | The input parameter typedarray is nullptr. | Ensure that the input parameter is correct. |
| napi_get_typedarray_info | Obtains the properties of a TypedArray. | napi_invalid_arg | The input parameter typedarray is neither of the ArkTS TypedArray type nor of the ShareTypedArray type. | Ensure that the input parameter is correct. |
| napi_get_dataview_info | Obtains the properties of a DataView. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_dataview_info | Obtains the properties of a DataView. | napi_invalid_arg | The input parameter dataview is nullptr. | Ensure that the input parameter is correct. |
| napi_get_dataview_info | Obtains the properties of a DataView. | napi_invalid_arg | The input parameter dataview is not of the ArkTS DataView type. | Ensure that the input parameter is correct. |
| napi_get_value_bool | Obtains the C bool equivalent of an ArkTS Boolean value. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_bool | Obtains the C bool equivalent of an ArkTS Boolean value. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_bool | Obtains the C bool equivalent of an ArkTS Boolean value. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_bool | Obtains the C bool equivalent of an ArkTS Boolean value. | napi_boolean_expected | The input parameter value is not of the ArkTS Boolean type. | Ensure that the input parameter is correct. |
| napi_get_value_double | Obtains the C double equivalent of an ArkTS number. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_double | Obtains the C double equivalent of an ArkTS number. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_double | Obtains the C double equivalent of an ArkTS number. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_double | Obtains the C double equivalent of an ArkTS number. | napi_number_expected | The input parameter value is not of the ArkTS number type. | Ensure that the input parameter is correct. |
| napi_get_value_external | Obtains the external data pointer previously passed through napi_create_external(). | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_external | Obtains the external data pointer previously passed through napi_create_external(). | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_external | Obtains the external data pointer previously passed through napi_create_external(). | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_external | Obtains the external data pointer previously passed through napi_create_external(). | napi_object_expected | The input parameter value is not of the external type. | Ensure that the input parameter is correct. |
| napi_get_value_int32 | Obtains the C int32 equivalent of an ArkTS number. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_int32 | Obtains the C int32 equivalent of an ArkTS number. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_int32 | Obtains the C int32 equivalent of an ArkTS number. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_int32 | Obtains the C int32 equivalent of an ArkTS number. | napi_number_expected | The input parameter value is not of the ArkTS number type. | Ensure that the input parameter is correct. |
| napi_get_value_int64 | Obtains the C int64 equivalent of an ArkTS number. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_int64 | Obtains the C int64 equivalent of an ArkTS number. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_int64 | Obtains the C int64 equivalent of an ArkTS number. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_int64 | Obtains the C int64 equivalent of an ArkTS number. | napi_number_expected | The input parameter value is not of the ArkTS number type. | Ensure that the input parameter is correct. |
| napi_get_value_string_latin1 | Obtains the ISO-8859-1-encoded string corresponding to the given ArkTS value. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_string_latin1 | Obtains the ISO-8859-1-encoded string corresponding to the given ArkTS value. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_string_latin1 | Obtains the ISO-8859-1-encoded string corresponding to the given ArkTS value. | napi_invalid_arg | Both buf and result are nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_string_latin1 | Obtains the ISO-8859-1-encoded string corresponding to the given ArkTS value. | napi_string_expected | The input parameter value is not of the ArkTS string type. | Ensure that the input parameter is correct. |
| napi_get_value_string_utf8 | Obtains the UTF8-encoded string corresponding to the given ArkTS value. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_string_utf8 | Obtains the UTF8-encoded string corresponding to the given ArkTS value. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_string_utf8 | Obtains the UTF8-encoded string corresponding to the given ArkTS value. | napi_invalid_arg | Both buf and result are nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_string_utf8 | Obtains the UTF8-encoded string corresponding to the given ArkTS value. | napi_string_expected | The input parameter value is not of the ArkTS string type. | Ensure that the input parameter is correct. |
| napi_get_value_string_utf16 | Obtains the UTF16-encoded string corresponding to the given ArkTS value. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_string_utf16 | Obtains the UTF16-encoded string corresponding to the given ArkTS value. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_string_utf16 | Obtains the UTF16-encoded string corresponding to the given ArkTS value. | napi_invalid_arg | Both buf and result are nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_string_utf16 | Obtains the UTF16-encoded string corresponding to the given ArkTS value. | napi_string_expected | The input parameter value is not of the ArkTS string type. | Ensure that the input parameter is correct. |
| napi_get_value_uint32 | Obtains the C uint32 equivalent of an ArkTS number. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_uint32 | Obtains the C uint32 equivalent of an ArkTS number. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_uint32 | Obtains the C uint32 equivalent of an ArkTS number. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_uint32 | Obtains the C uint32 equivalent of an ArkTS number. | napi_number_expected | The input parameter value is not of the ArkTS number type. | Ensure that the input parameter is correct. |
| napi_get_boolean | Obtains an ArkTS bool object based on a C boolean value. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_boolean | Obtains an ArkTS bool object based on a C boolean value. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_get_global | Obtains the global object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_global | Obtains the global object. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_get_null | Obtains the null object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_null | Obtains the null object. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_get_undefined | Obtains the undefined object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_undefined | Obtains the undefined object. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_coerce_to_bool | Forcibly converts an ArkTS value to an ArkTS boolean. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_coerce_to_bool | Forcibly converts an ArkTS value to an ArkTS boolean. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_coerce_to_bool | Forcibly converts an ArkTS value to an ArkTS boolean. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_coerce_to_bool | Forcibly converts an ArkTS value to an ArkTS boolean. | napi_pending_exception | An uncaught ArkTS exception occurs before the API is called. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_coerce_to_number | Forcibly converts an ArkTS value to an ArkTS number. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_coerce_to_number | Forcibly converts an ArkTS value to an ArkTS number. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_coerce_to_number | Forcibly converts an ArkTS value to an ArkTS number. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_coerce_to_object | Forcibly converts an ArkTS value to an ArkTS object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_coerce_to_object | Forcibly converts an ArkTS value to an ArkTS object. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_coerce_to_object | Forcibly converts an ArkTS value to an ArkTS object. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_coerce_to_string | Forcibly converts an ArkTS value to an ArkTS string. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_coerce_to_string | Forcibly converts an ArkTS value to an ArkTS string. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_coerce_to_string | Forcibly converts an ArkTS value to an ArkTS string. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_typeof | Obtains the type of an ArkTS value. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_typeof | Obtains the type of an ArkTS value. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_typeof | Obtains the type of an ArkTS value. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_instanceof | Checks whether the given object is an instance of the specified constructor. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_instanceof | Checks whether the given object is an instance of the specified constructor. | napi_invalid_arg | The input parameter object is nullptr. | Ensure that the input parameter is correct. |
| napi_instanceof | Checks whether the given object is an instance of the specified constructor. | napi_invalid_arg | The input parameter constructor is nullptr. | Ensure that the input parameter is correct. |
| napi_instanceof | Checks whether the given object is an instance of the specified constructor. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_instanceof | Checks whether the given object is an instance of the specified constructor. | napi_object_expected | The input parameter object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_instanceof | Checks whether the given object is an instance of the specified constructor. | napi_function_expected | The input parameter constructor is not of the ArkTS function type. | Ensure that the input parameter is correct. |
| napi_instanceof | Checks whether the given object is an instance of the specified constructor. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_is_array | Checks whether the given ArkTS value is an array. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_is_array | Checks whether the given ArkTS value is an array. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_is_array | Checks whether the given ArkTS value is an array. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_is_arraybuffer | Checks whether the given ArkTS value is an ArrayBuffer object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_is_arraybuffer | Checks whether the given ArkTS value is an ArrayBuffer object. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_is_arraybuffer | Checks whether the given ArkTS value is an ArrayBuffer object. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_is_typedarray | Checks whether an ArkTS value is a TypedArray. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_is_typedarray | Checks whether an ArkTS value is a TypedArray. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_is_typedarray | Checks whether an ArkTS value is a TypedArray. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_is_dataview | Checks whether an ArkTS value is a DataView. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_is_dataview | Checks whether an ArkTS value is a DataView. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_is_dataview | Checks whether an ArkTS value is a DataView. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_is_date | Checks whether an ArkTS value is an ArkTS Date object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_is_date | Checks whether an ArkTS value is an ArkTS Date object. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_is_date | Checks whether an ArkTS value is an ArkTS Date object. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_strict_equals | Checks whether two ArkTS values are strictly equal. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_strict_equals | Checks whether two ArkTS values are strictly equal. | napi_invalid_arg | The input parameter lhs is nullptr. | Ensure that the input parameter is correct. |
| napi_strict_equals | Checks whether two ArkTS values are strictly equal. | napi_invalid_arg | The input parameter rhs is nullptr. | Ensure that the input parameter is correct. |
| napi_strict_equals | Checks whether two ArkTS values are strictly equal. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_get_property_names | Obtains the names of the enumerable properties of an object in an array of strings. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_property_names | Obtains the names of the enumerable properties of an object in an array of strings. | napi_invalid_arg | The input parameter object is nullptr. | Ensure that the input parameter is correct. |
| napi_get_property_names | Obtains the names of the enumerable properties of an object in an array of strings. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_get_property_names | Obtains the names of the enumerable properties of an object in an array of strings. | napi_object_expected | The input parameter object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_set_property | Sets a property for an object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_set_property | Sets a property for an object. | napi_invalid_arg | The input parameter object is nullptr. | Ensure that the input parameter is correct. |
| napi_set_property | Sets a property for an object. | napi_invalid_arg | The input parameter key is nullptr. | Ensure that the input parameter is correct. |
| napi_set_property | Sets a property for an object. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_set_property | Sets a property for an object. | napi_object_expected | The input parameter object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_set_property | Sets a property for an object. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_get_property | Obtains the requested property of an object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_property | Obtains the requested property of an object. | napi_invalid_arg | The input parameter object is nullptr. | Ensure that the input parameter is correct. |
| napi_get_property | Obtains the requested property of an object. | napi_invalid_arg | The input parameter key is nullptr. | Ensure that the input parameter is correct. |
| napi_get_property | Obtains the requested property of an object. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_get_property | Obtains the requested property of an object. | napi_object_expected | The input parameter object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_get_property | Obtains the requested property of an object. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_has_property | Checks whether an object has the specified property. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_has_property | Checks whether an object has the specified property. | napi_invalid_arg | The input parameter object is nullptr. | Ensure that the input parameter is correct. |
| napi_has_property | Checks whether an object has the specified property. | napi_invalid_arg | The input parameter key is nullptr. | Ensure that the input parameter is correct. |
| napi_has_property | Checks whether an object has the specified property. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_has_property | Checks whether an object has the specified property. | napi_object_expected | The input parameter object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_has_property | Checks whether an object has the specified property. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_delete_property | Deletes a property from an object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_delete_property | Deletes a property from an object. | napi_invalid_arg | The input parameter object is nullptr. | Ensure that the input parameter is correct. |
| napi_delete_property | Deletes a property from an object. | napi_invalid_arg | The input parameter key is nullptr. | Ensure that the input parameter is correct. |
| napi_delete_property | Deletes a property from an object. | napi_object_expected | The input parameter object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_delete_property | Deletes a property from an object. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_has_own_property | Checks whether an object has the own property specified by key. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_has_own_property | Checks whether an object has the own property specified by key. | napi_invalid_arg | The input parameter object is nullptr. | Ensure that the input parameter is correct. |
| napi_has_own_property | Checks whether an object has the own property specified by key. | napi_invalid_arg | The input parameter key is nullptr. | Ensure that the input parameter is correct. |
| napi_has_own_property | Checks whether an object has the own property specified by key. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_has_own_property | Checks whether an object has the own property specified by key. | napi_object_expected | The input parameter object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_has_own_property | Checks whether an object has the own property specified by key. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_set_named_property | Sets a property with the specified name for an object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_set_named_property | Sets a property with the specified name for an object. | napi_invalid_arg | The input parameter object is nullptr. | Ensure that the input parameter is correct. |
| napi_set_named_property | Sets a property with the specified name for an object. | napi_invalid_arg | The input parameter utf8name is nullptr. | Ensure that the input parameter is correct. |
| napi_set_named_property | Sets a property with the specified name for an object. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_set_named_property | Sets a property with the specified name for an object. | napi_object_expected | The input parameter object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_set_named_property | Sets a property with the specified name for an object. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_get_named_property | Obtains the property with the specified name in an object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_named_property | Obtains the property with the specified name in an object. | napi_invalid_arg | The input parameter object is nullptr. | Ensure that the input parameter is correct. |
| napi_get_named_property | Obtains the property with the specified name in an object. | napi_invalid_arg | The input parameter utf8name is nullptr. | Ensure that the input parameter is correct. |
| napi_get_named_property | Obtains the property with the specified name in an object. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_get_named_property | Obtains the property with the specified name in an object. | napi_object_expected | The input parameter object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_get_named_property | Obtains the property with the specified name in an object. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_has_named_property | Checks whether an object has the property with the specified name. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_has_named_property | Checks whether an object has the property with the specified name. | napi_invalid_arg | The input parameter object is nullptr. | Ensure that the input parameter is correct. |
| napi_has_named_property | Checks whether an object has the property with the specified name. | napi_invalid_arg | The input parameter utf8name is nullptr. | Ensure that the input parameter is correct. |
| napi_has_named_property | Checks whether an object has the property with the specified name. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_has_named_property | Checks whether an object has the property with the specified name. | napi_object_expected | The input parameter object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_has_named_property | Checks whether an object has the property with the specified name. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_set_element | Sets an element at the specified index of an object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_set_element | Sets an element at the specified index of an object. | napi_invalid_arg | The input parameter object is nullptr. | Ensure that the input parameter is correct. |
| napi_set_element | Sets an element at the specified index of an object. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_set_element | Sets an element at the specified index of an object. | napi_object_expected | The input parameter object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_set_element | Sets an element at the specified index of an object. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_get_element | Obtains the element at the specified index of an object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_element | Obtains the element at the specified index of an object. | napi_invalid_arg | The input parameter object is nullptr. | Ensure that the input parameter is correct. |
| napi_get_element | Obtains the element at the specified index of an object. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_get_element | Obtains the element at the specified index of an object. | napi_object_expected | The input parameter object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_get_element | Obtains the element at the specified index of an object. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_has_element | Obtains the element if the object has an element at the specified index. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_has_element | Obtains the element if the object has an element at the specified index. | napi_invalid_arg | The input parameter object is nullptr. | Ensure that the input parameter is correct. |
| napi_has_element | Obtains the element if the object has an element at the specified index. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_has_element | Obtains the element if the object has an element at the specified index. | napi_object_expected | The input parameter object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_has_element | Obtains the element if the object has an element at the specified index. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_delete_element | Deletes the element at the specified index of an object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_delete_element | Deletes the element at the specified index of an object. | napi_invalid_arg | The input parameter object is nullptr. | Ensure that the input parameter is correct. |
| napi_delete_element | Deletes the element at the specified index of an object. | napi_object_expected | The input parameter object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_delete_element | Deletes the element at the specified index of an object. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_define_properties | Defines multiple properties for an object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_define_properties | Defines multiple properties for an object. | napi_invalid_arg | The input parameter object is nullptr. | Ensure that the input parameter is correct. |
| napi_define_properties | Defines multiple properties for an object. | napi_invalid_arg | The input parameter properties is nullptr. | Ensure that the input parameter is correct. |
| napi_define_properties | Defines multiple properties for an object. | napi_object_expected | The input parameter object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_define_properties | Defines multiple properties for an object. | napi_name_expected | utf8name is not set for a property in the input parameter properties, and the property name is neither of the ArkTS string type nor the ArkTS symbol type. | Ensure that the input parameter is correct. |
| napi_define_properties | Defines multiple properties for an object. | napi_pending_exception | An uncaught ArkTS exception occurs before the API is called. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_type_tag_object | Associates the value of the tag pointer with a JS object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_type_tag_object | Associates the value of the tag pointer with a JS object. | napi_invalid_arg | The input parameter js_object is nullptr. | Ensure that the input parameter is correct. |
| napi_type_tag_object | Associates the value of the tag pointer with a JS object. | napi_invalid_arg | The input parameter type_tag is nullptr. | Ensure that the input parameter is correct. |
| napi_type_tag_object | Associates the value of the tag pointer with a JS object. | napi_invalid_arg | The ArkTS object has been tagged. | Ensure that the ArkTS object is not tagged. |
| napi_type_tag_object | Associates the value of the tag pointer with a JS object. | napi_invalid_arg | An uncaught ArkTS exception occurs during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_type_tag_object | Associates the value of the tag pointer with a JS object. | napi_object_expected | The input parameter js_object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_type_tag_object | Associates the value of the tag pointer with a JS object. | napi_pending_exception | An uncaught ArkTS exception occurs before the API is called. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_check_object_type_tag | Checks whether a tag pointer is associated with an ArkTS object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_check_object_type_tag | Checks whether a tag pointer is associated with an ArkTS object. | napi_invalid_arg | The input parameter js_object is nullptr. | Ensure that the input parameter is correct. |
| napi_check_object_type_tag | Checks whether a tag pointer is associated with an ArkTS object. | napi_invalid_arg | The input parameter type_tag is nullptr. | Ensure that the input parameter is correct. |
| napi_check_object_type_tag | Checks whether a tag pointer is associated with an ArkTS object. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_check_object_type_tag | Checks whether a tag pointer is associated with an ArkTS object. | napi_object_expected | The input parameter js_object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_check_object_type_tag | Checks whether a tag pointer is associated with an ArkTS object. | napi_pending_exception | An uncaught ArkTS exception occurs before the API is called. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_call_function | Calls an ArkTS function in a native method, that is, native calls ArkTS. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_call_function | Calls an ArkTS function in a native method, that is, native calls ArkTS. | napi_invalid_arg | The input parameter func is nullptr. | Ensure that the input parameter is correct. |
| napi_call_function | Calls an ArkTS function in a native method, that is, native calls ArkTS. | napi_invalid_arg | The input parameter argc is greater than 0 and argv is nullptr. | Ensure that the input parameter is correct. |
| napi_call_function | Calls an ArkTS function in a native method, that is, native calls ArkTS. | napi_function_expected | The input parameter func is not of the ArkTS function type. | Ensure that the input parameter is correct. |
| napi_call_function | Calls an ArkTS function in a native method, that is, native calls ArkTS. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_create_function | Creates a native method for ArkTS to call. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_function | Creates a native method for ArkTS to call. | napi_invalid_arg | The input parameter cb is nullptr. | Ensure that the input parameter is correct. |
| napi_create_function | Creates a native method for ArkTS to call. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_function | Creates a native method for ArkTS to call. | napi_invalid_arg | Failed to create a C++ object. | The memory is insufficient. Check whether C++ memory leaks. |
| napi_create_function | Creates a native method for ArkTS to call. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_get_cb_info | Obtains detailed information about the call, such as the parameters and this pointer, from the given callback information. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_cb_info | Obtains detailed information about the call, such as the parameters and this pointer, from the given callback information. | napi_invalid_arg | The input parameter cbinfo is nullptr. | Ensure that the input parameter is correct. |
| napi_get_new_target | Obtains the new.target of the constructor call. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_new_target | Obtains the new.target of the constructor call. | napi_invalid_arg | The input parameter cbinfo is nullptr. | Ensure that the input parameter is correct. |
| napi_get_new_target | Obtains the new.target of the constructor call. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_get_new_target | Obtains the new.target of the constructor call. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_new_instance | Creates an instance based on the given constructor. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_new_instance | Creates an instance based on the given constructor. | napi_invalid_arg | The input parameter constructor is nullptr. | Ensure that the input parameter is correct. |
| napi_new_instance | Creates an instance based on the given constructor. | napi_invalid_arg | The input parameter argc is greater than 0 and argv is nullptr. | Ensure that the input parameter is correct. |
| napi_new_instance | Creates an instance based on the given constructor. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_new_instance | Creates an instance based on the given constructor. | napi_function_expected | The input parameter constructor is not of the ArkTS function type. | Ensure that the input parameter is correct. |
| napi_new_instance | Creates an instance based on the given constructor. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_define_class | Defines a JS class corresponding to the C++ class. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_define_class | Defines a JS class corresponding to the C++ class. | napi_invalid_arg | The input parameter utf8name is nullptr. | Ensure that the input parameter is correct. |
| napi_define_class | Defines a JS class corresponding to the C++ class. | napi_invalid_arg | The input parameter constructor is nullptr. | Ensure that the input parameter is correct. |
| napi_define_class | Defines a JS class corresponding to the C++ class. | napi_invalid_arg | The input parameter property_count is greater than 0 and properties is nullptr. | Ensure that the input parameter is correct. |
| napi_define_class | Defines a JS class corresponding to the C++ class. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_define_class | Defines a JS class corresponding to the C++ class. | napi_object_expected | The input parameter length is not NAPI_AUTO_LENGTH, but exceeds INT_MAX. | Ensure that the input parameter is correct. |
| napi_define_class | Defines a JS class corresponding to the C++ class. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_wrap | Wraps a native instance in an ArkTS object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_wrap | Wraps a native instance in an ArkTS object. | napi_invalid_arg | The input parameter js_object is nullptr. | Ensure that the input parameter is correct. |
| napi_wrap | Wraps a native instance in an ArkTS object. | napi_invalid_arg | The input parameter native_object is nullptr. | Ensure that the input parameter is correct. |
| napi_wrap | Wraps a native instance in an ArkTS object. | napi_invalid_arg | The input parameter finalize_cb is nullptr. | Ensure that the input parameter is correct. |
| napi_wrap | Wraps a native instance in an ArkTS object. | napi_object_expected | The input parameter js_object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_wrap | Wraps a native instance in an ArkTS object. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_unwrap | Unwraps the native instance from an ArkTS object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_unwrap | Unwraps the native instance from an ArkTS object. | napi_invalid_arg | The input parameter js_object is nullptr. | Ensure that the input parameter is correct. |
| napi_unwrap | Unwraps the native instance from an ArkTS object. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_unwrap | Unwraps the native instance from an ArkTS object. | napi_object_expected | The input parameter js_object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_unwrap | Unwraps the native instance from an ArkTS object. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_remove_wrap | Removes the native instance from the ArkTS object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_remove_wrap | Removes the native instance from the ArkTS object. | napi_invalid_arg | The input parameter js_object is nullptr. | Ensure that the input parameter is correct. |
| napi_remove_wrap | Removes the native instance from the ArkTS object. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_remove_wrap | Removes the native instance from the ArkTS object. | napi_object_expected | The input parameter js_object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_remove_wrap | Removes the native instance from the ArkTS object. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_create_async_work | Creates a work object that executes logic asynchronously. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_async_work | Creates a work object that executes logic asynchronously. | napi_invalid_arg | The input parameter async_resource_name is nullptr. | Ensure that the input parameter is correct. |
| napi_create_async_work | Creates a work object that executes logic asynchronously. | napi_invalid_arg | The input parameter execute is nullptr. | Ensure that the input parameter is correct. |
| napi_create_async_work | Creates a work object that executes logic asynchronously. | napi_invalid_arg | The input parameter complete is nullptr. | Ensure that the input parameter is correct. |
| napi_create_async_work | Creates a work object that executes logic asynchronously. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_delete_async_work | Releases an async work object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_delete_async_work | Releases an async work object. | napi_invalid_arg | The input parameter work is nullptr. | Ensure that the input parameter is correct. |
| napi_queue_async_work | Adds an async work object to the queue so that it can be scheduled for execution. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_queue_async_work | Adds an async work object to the queue so that it can be scheduled for execution. | napi_invalid_arg | The input parameter work is nullptr. | Ensure that the input parameter is correct. |
| napi_cancel_async_work | Cancels a queued async work if it has not been started. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_cancel_async_work | Cancels a queued async work if it has not been started. | napi_invalid_arg | The input parameter work is nullptr. | Ensure that the input parameter is correct. |
| napi_async_init | Creates an asynchronous context. The functionalities related to async_hook are not supported. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_async_init | Creates an asynchronous context. The functionalities related to async_hook are not supported. | napi_invalid_arg | The input parameter async_resource_name is nullptr. | Ensure that the input parameter is correct. |
| napi_async_init | Creates an asynchronous context. The functionalities related to async_hook are not supported. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_make_callback | Allows an ArkTS function to be called in the asynchronous context. The functionalities related to async_hook are not supported. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_make_callback | Allows an ArkTS function to be called in the asynchronous context. The functionalities related to async_hook are not supported. | napi_invalid_arg | The input parameter func is nullptr. | Ensure that the input parameter is correct. |
| napi_make_callback | Allows an ArkTS function to be called in the asynchronous context. The functionalities related to async_hook are not supported. | napi_invalid_arg | The input parameter recv is nullptr. | Ensure that the input parameter is correct. |
| napi_make_callback | Allows an ArkTS function to be called in the asynchronous context. The functionalities related to async_hook are not supported. | napi_invalid_arg | The input parameter argc is greater than 0 and argv is nullptr. | Ensure that the input parameter is correct. |
| napi_make_callback | Allows an ArkTS function to be called in the asynchronous context. The functionalities related to async_hook are not supported. | napi_object_expected | The input parameter recv is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_make_callback | Allows an ArkTS function to be called in the asynchronous context. The functionalities related to async_hook are not supported. | napi_function_expected | The input parameter func is not of the ArkTS function type. | Ensure that the input parameter is correct. |
| napi_make_callback | Allows an ArkTS function to be called in the asynchronous context. The functionalities related to async_hook are not supported. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_async_destroy | Destroys the previously created asynchronous context. The functionalities related to async_hook are not supported. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_async_destroy | Destroys the previously created asynchronous context. The functionalities related to async_hook are not supported. | napi_invalid_arg | The input parameter async_context is nullptr. | Ensure that the input parameter is correct. |
| napi_open_callback_scope | Opens a callback scope. The functionalities related to async_hook are not supported. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_open_callback_scope | Opens a callback scope. The functionalities related to async_hook are not supported. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_close_callback_scope | Closes the callback scope. The functionalities related to async_hook are not supported. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_close_callback_scope | Closes the callback scope. The functionalities related to async_hook are not supported. | napi_invalid_arg | The input parameter scope is nullptr. | Ensure that the input parameter is correct. |
| napi_close_callback_scope | Closes the callback scope. The functionalities related to async_hook are not supported. | napi_invalid_arg | Failed to create a C++ object. | The memory is insufficient. Check whether C++ memory leaks. |
| napi_close_callback_scope | Closes the callback scope. The functionalities related to async_hook are not supported. | napi_callback_scope_mismatch | napi_open_callback_scope is called fewer times than napi_close_callback_scope. | Use napi_open_callback_scope and napi_close_callback_scope in pairs. |
| napi_get_node_version | Obtains the current Node-API version. | N/A | N/A | N/A |
| napi_get_version | Obtains the latest Node-API version supported when the Node.js runtime. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_version | Obtains the latest Node-API version supported when the Node.js runtime. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_promise | Creates a deferred object and an ArkTS promise. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_promise | Creates a deferred object and an ArkTS promise. | napi_invalid_arg | The input parameter deferred is nullptr. | Ensure that the input parameter is correct. |
| napi_create_promise | Creates a deferred object and an ArkTS promise. | napi_invalid_arg | The input parameter promise is nullptr. | Ensure that the input parameter is correct. |
| napi_create_promise | Creates a deferred object and an ArkTS promise. | napi_pending_exception | An uncaught ArkTS exception occurs before the API is called. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_resolve_deferred | Resolves a deferred object that is associated with an ArkTS promise. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_resolve_deferred | Resolves a deferred object that is associated with an ArkTS promise. | napi_invalid_arg | The input parameter deferred is nullptr. | Ensure that the input parameter is correct. |
| napi_resolve_deferred | Resolves a deferred object that is associated with an ArkTS promise. | napi_invalid_arg | The input parameter resolution is nullptr. | Ensure that the input parameter is correct. |
| napi_resolve_deferred | Resolves a deferred object that is associated with an ArkTS promise. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_reject_deferred | Rejects a deferred object that is associated with an ArkTS promise. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_reject_deferred | Rejects a deferred object that is associated with an ArkTS promise. | napi_invalid_arg | The input parameter deferred is nullptr. | Ensure that the input parameter is correct. |
| napi_reject_deferred | Rejects a deferred object that is associated with an ArkTS promise. | napi_invalid_arg | The input parameter rejection is nullptr. | Ensure that the input parameter is correct. |
| napi_reject_deferred | Rejects a deferred object that is associated with an ArkTS promise. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_is_promise | Checks whether the given ArkTS value is a promise object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_is_promise | Checks whether the given ArkTS value is a promise object. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_is_promise | Checks whether the given ArkTS value is a promise object. | napi_invalid_arg | The input parameter is_promise is nullptr. | Ensure that the input parameter is correct. |
| napi_get_uv_event_loop | Obtains the current libuv loop instance. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_uv_event_loop | Obtains the current libuv loop instance. | napi_invalid_arg | The input parameter loop is nullptr. | Ensure that the input parameter is correct. |
| napi_get_uv_event_loop | Obtains the current libuv loop instance. | napi_generic_failure | The input parameter env has been destroyed. | Ensure that the input parameter is correct. |
| napi_create_threadsafe_function | Creates a thread-safe function. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_threadsafe_function | Creates a thread-safe function. | napi_invalid_arg | The input parameter async_resource_name is nullptr. | Ensure that the input parameter is correct. |
| napi_create_threadsafe_function | Creates a thread-safe function. | napi_invalid_arg | The value of the input parameter initial_thread_count is 0 or greater than 128. | Ensure that the input parameter is correct. |
| napi_create_threadsafe_function | Creates a thread-safe function. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_threadsafe_function | Creates a thread-safe function. | napi_invalid_arg | Both func and call_js_cb are nullptr. | Ensure that the input parameter is correct. |
| napi_create_threadsafe_function | Creates a thread-safe function. | napi_invalid_arg | Failed to create a C++ object. | The memory is insufficient. Check whether C++ memory leaks. |
| napi_create_threadsafe_function | Creates a thread-safe function. | napi_generic_failure | uv_loop_t is nullptr. | NA |
| napi_create_threadsafe_function | Creates a thread-safe function. | napi_generic_failure | uv_async_init failed. | NA |
| napi_get_threadsafe_function_context | Obtains the context of a thread-safe function. | napi_invalid_arg | The input parameter func is nullptr. | Ensure that the input parameter is correct. |
| napi_get_threadsafe_function_context | Obtains the context of a thread-safe function. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_call_threadsafe_function | Calls a thread-safe function. | napi_invalid_arg | The input parameter func is nullptr. | Ensure that the input parameter is correct. |
| napi_call_threadsafe_function | Calls a thread-safe function. | napi_invalid_arg | threadsafe_function is disabled. | Do not call this API after napi_release_threadsafe_function disables func. |
| napi_call_threadsafe_function | Calls a thread-safe function. | napi_queue_full | The input parameter is_blocking is napi_tsfn_nonblocking, and the queue is full. | Increase the value of max_queue_size, or change is_blocking to napi_tsfn_blocking. |
| napi_call_threadsafe_function | Calls a thread-safe function. | napi_closing | threadsafe_function is being disabled. | Do not call this API after napi_release_threadsafe_function disables func. |
| napi_call_threadsafe_function | Calls a thread-safe function. | napi_closing | The input parameter env has been destroyed, and the env address is reused by a new env. | Do not use this API after the env is destroyed. |
| napi_call_threadsafe_function | Calls a thread-safe function. | napi_generic_failure | uv_async_send failed. | NA |
| napi_call_threadsafe_function | Calls a thread-safe function. | napi_generic_failure | The input parameter env has been destroyed. | Do not use this API after the env is destroyed. |
| napi_acquire_threadsafe_function | Acquires a thread-safe function. | napi_invalid_arg | The input parameter func is nullptr. | Ensure that the input parameter is correct. |
| napi_acquire_threadsafe_function | Acquires a thread-safe function. | napi_generic_failure | threadsafe_function is being disabled/has been disabled. | Do not call this API after napi_release_threadsafe_function disables func. |
| napi_release_threadsafe_function | Releases a thread-safe function. | napi_invalid_arg | The input parameter func is nullptr. | Ensure that the input parameter is correct. |
| napi_release_threadsafe_function | Releases a thread-safe function. | napi_generic_failure | threadsafe_function is being disabled/has been disabled. | Do not call this API after napi_release_threadsafe_function disables func. |
| napi_release_threadsafe_function | Releases a thread-safe function. | napi_generic_failure | When this API is called, the number of threads that occupy threadsafe_function is 0. | The number of release times must match the values of initial_thread_count and acquire. |
| napi_release_threadsafe_function | Releases a thread-safe function. | napi_generic_failure | uv_async_send failed. | NA |
| napi_release_threadsafe_function | Releases a thread-safe function. | napi_generic_failure | The input parameter env has been destroyed. | Ensure that the input parameter is correct. |
| napi_ref_threadsafe_function | Indicates that the event loop running on the main thread should not exit until the thread-safe function is destroyed. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_ref_threadsafe_function | Indicates that the event loop running on the main thread should not exit until the thread-safe function is destroyed. | napi_invalid_arg | The input parameter func is nullptr. | Ensure that the input parameter is correct. |
| napi_ref_threadsafe_function | Indicates that the event loop running on the main thread should not exit until the thread-safe function is destroyed. | napi_generic_failure | env is not in the current thread. | This API can be called only from the thread to which the env belongs. |
| napi_unref_threadsafe_function | Indicates that the event loop running on the main thread may exit before the thread-safe function is destroyed. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_unref_threadsafe_function | Indicates that the event loop running on the main thread may exit before the thread-safe function is destroyed. | napi_invalid_arg | The input parameter func is nullptr. | Ensure that the input parameter is correct. |
| napi_unref_threadsafe_function | Indicates that the event loop running on the main thread may exit before the thread-safe function is destroyed. | napi_generic_failure | env is not in the current thread. | This API can be called only from the thread to which the env belongs. |
| napi_create_date | Creates an ArkTS Date object from C double data. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_date | Creates an ArkTS Date object from C double data. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_date | Creates an ArkTS Date object from C double data. | napi_pending_exception | An uncaught ArkTS exception occurs before the API is called. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_get_date_value | Obtains the C double equivalent of the given ArkTS Date object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_date_value | Obtains the C double equivalent of the given ArkTS Date object. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_get_date_value | Obtains the C double equivalent of the given ArkTS Date object. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_get_date_value | Obtains the C double equivalent of the given ArkTS Date object. | napi_date_expected | The input parameter value is not of the ArkTS date type. | Ensure that the input parameter is correct. |
| napi_get_date_value | Obtains the C double equivalent of the given ArkTS Date object. | napi_pending_exception | An uncaught ArkTS exception occurs before the API is called. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_create_bigint_int64 | Creates an ArkTS BigInt from C int64 data. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_bigint_int64 | Creates an ArkTS BigInt from C int64 data. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_bigint_uint64 | Creates an ArkTS BigInt from C uint64 data. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_bigint_uint64 | Creates an ArkTS BigInt from C uint64 data. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_bigint_words | Creates a single ArkTS BigInt from a C uint64 array. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_bigint_words | Creates a single ArkTS BigInt from a C uint64 array. | napi_invalid_arg | The input parameter words is nullptr. | Ensure that the input parameter is correct. |
| napi_create_bigint_words | Creates a single ArkTS BigInt from a C uint64 array. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_bigint_words | Creates a single ArkTS BigInt from a C uint64 array. | napi_invalid_arg | The input parameter word_count is greater than or equal to INT_MAX. | Ensure that the input parameter is correct. |
| napi_create_bigint_words | Creates a single ArkTS BigInt from a C uint64 array. | napi_pending_exception | An uncaught ArkTS exception occurs before the API is called. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_create_bigint_words | Creates a single ArkTS BigInt from a C uint64 array. | napi_pending_exception | Input Parameter (word_count × 2) > (1 MB/32). | Ensure that the input parameter is correct. |
| napi_get_value_bigint_int64 | Obtains the C int64 equivalent of an ArkTS BigInt. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_bigint_int64 | Obtains the C int64 equivalent of an ArkTS BigInt. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_bigint_int64 | Obtains the C int64 equivalent of an ArkTS BigInt. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_bigint_int64 | Obtains the C int64 equivalent of an ArkTS BigInt. | napi_invalid_arg | The input parameter lossless is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_bigint_int64 | Obtains the C int64 equivalent of an ArkTS BigInt. | napi_bigint_expected | The input parameter value is not of the ArkTS BigInt type. | Ensure that the input parameter is correct. |
| napi_get_value_bigint_uint64 | Obtains the C uint64 equivalent of an ArkTS BigInt. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_bigint_uint64 | Obtains the C uint64 equivalent of an ArkTS BigInt. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_bigint_uint64 | Obtains the C uint64 equivalent of an ArkTS BigInt. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_bigint_uint64 | Obtains the C uint64 equivalent of an ArkTS BigInt. | napi_invalid_arg | The input parameter lossless is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_bigint_uint64 | Obtains the C uint64 equivalent of an ArkTS BigInt. | napi_bigint_expected | The input parameter value is not of the ArkTS BigInt type. | Ensure that the input parameter is correct. |
| napi_get_value_bigint_words | Obtains information from the given ArkTS BigInt, including the sign bit, 64-bit little-endian array, and number of elements in the array. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_bigint_words | Obtains information from the given ArkTS BigInt, including the sign bit, 64-bit little-endian array, and number of elements in the array. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_bigint_words | Obtains information from the given ArkTS BigInt, including the sign bit, 64-bit little-endian array, and number of elements in the array. | napi_invalid_arg | The input parameter word_count is nullptr. | Ensure that the input parameter is correct. |
| napi_get_value_bigint_words | Obtains information from the given ArkTS BigInt, including the sign bit, 64-bit little-endian array, and number of elements in the array. | napi_object_expected | The input parameter value is not of the ArkTS BigInt type. | Ensure that the input parameter is correct. |
| napi_create_buffer | Creates an ArkTS buffer of the specified size. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_buffer | Creates an ArkTS buffer of the specified size. | napi_invalid_arg | The input parameter data is nullptr. | Ensure that the input parameter is correct. |
| napi_create_buffer | Creates an ArkTS buffer of the specified size. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_buffer | Creates an ArkTS buffer of the specified size. | napi_invalid_arg | The input parameter size is 0 or greater than 2 MiB (2097152 bytes). | Ensure that the input parameter is correct. |
| napi_create_buffer | Creates an ArkTS buffer of the specified size. | napi_pending_exception | An uncaught ArkTS exception occurs before the API is called. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_create_buffer_copy | Creates an ArkTS buffer of the specified size and initializes it with the given data. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_buffer_copy | Creates an ArkTS buffer of the specified size and initializes it with the given data. | napi_invalid_arg | The input parameter data is nullptr. | Ensure that the input parameter is correct. |
| napi_create_buffer_copy | Creates an ArkTS buffer of the specified size and initializes it with the given data. | napi_invalid_arg | The input parameter result_data is nullptr. | Ensure that the input parameter is correct. |
| napi_create_buffer_copy | Creates an ArkTS buffer of the specified size and initializes it with the given data. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_buffer_copy | Creates an ArkTS buffer of the specified size and initializes it with the given data. | napi_invalid_arg | The input parameter size is 0 or greater than 2 MiB (2097152 bytes). | Ensure that the input parameter is correct. |
| napi_create_buffer_copy | Creates an ArkTS buffer of the specified size and initializes it with the given data. | napi_pending_exception | An uncaught ArkTS exception occurs before the API is called. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_create_external_buffer | Creates an ArkTS buffer of the specified size, and initializes it with the given data. The buffer created can include extra data. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_external_buffer | Creates an ArkTS buffer of the specified size, and initializes it with the given data. The buffer created can include extra data. | napi_invalid_arg | The input parameter data is nullptr. | Ensure that the input parameter is correct. |
| napi_create_external_buffer | Creates an ArkTS buffer of the specified size, and initializes it with the given data. The buffer created can include extra data. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_external_buffer | Creates an ArkTS buffer of the specified size, and initializes it with the given data. The buffer created can include extra data. | napi_invalid_arg | The input parameter size is 0 or greater than 2 MiB (2097152 bytes). | Ensure that the input parameter is correct. |
| napi_create_external_buffer | Creates an ArkTS buffer of the specified size, and initializes it with the given data. The buffer created can include extra data. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_get_buffer_info | Obtains the underlying data of an ArkTS buffer and its length. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_buffer_info | Obtains the underlying data of an ArkTS buffer and its length. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_get_buffer_info | Obtains the underlying data of an ArkTS buffer and its length. | napi_arraybuffer_expected | The input parameter value is not of the ArkTS ArrayBuffer type. | Ensure that the input parameter is correct. |
| napi_is_buffer | Checks whether the given ArkTS value is a Buffer object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_is_buffer | Checks whether the given ArkTS value is a Buffer object. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_is_buffer | Checks whether the given ArkTS value is a Buffer object. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_object_freeze | Freezes an object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_object_freeze | Freezes an object. | napi_invalid_arg | The input parameter object is nullptr. | Ensure that the input parameter is correct. |
| napi_object_freeze | Freezes an object. | napi_object_expected | The input parameter object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_object_freeze | Freezes an object. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_object_seal | Seals an object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_object_seal | Seals an object. | napi_invalid_arg | The input parameter object is nullptr. | Ensure that the input parameter is correct. |
| napi_object_seal | Seals an object. | napi_object_expected | The input parameter object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_object_seal | Seals an object. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_get_all_property_names | Obtains an array containing the names of all the available properties of this object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_all_property_names | Obtains an array containing the names of all the available properties of this object. | napi_invalid_arg | The input parameter object is nullptr. | Ensure that the input parameter is correct. |
| napi_get_all_property_names | Obtains an array containing the names of all the available properties of this object. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_get_all_property_names | Obtains an array containing the names of all the available properties of this object. | napi_invalid_arg | The input parameter key_mode is not within the enumerated value range of napi_key_collection_mode. | Ensure that the input parameter is correct. |
| napi_get_all_property_names | Obtains an array containing the names of all the available properties of this object. | napi_invalid_arg | The input parameter key_conversion is not within the enumerated value range of napi_key_conversion. | Ensure that the input parameter is correct. |
| napi_get_all_property_names | Obtains an array containing the names of all the available properties of this object. | napi_object_expected | The input parameter object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_get_all_property_names | Obtains an array containing the names of all the available properties of this object. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_detach_arraybuffer | Detaches the underlying data of the given ArrayBuffer. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_detach_arraybuffer | Detaches the underlying data of the given ArrayBuffer. | napi_invalid_arg | The input parameter arraybuffer is nullptr. | Ensure that the input parameter is correct. |
| napi_detach_arraybuffer | Detaches the underlying data of the given ArrayBuffer. | napi_invalid_arg | The input parameter arraybuffer is of the ArkTS object type, but not of the ArkTS ArrayBuffer type or SharedArrayBuffer type. | Ensure that the input parameter is correct. |
| napi_detach_arraybuffer | Detaches the underlying data of the given ArrayBuffer. | napi_invalid_arg | The input parameter arraybuffer has been detached. | Ensure that the arraybuffer is not detached. |
| napi_detach_arraybuffer | Detaches the underlying data of the given ArrayBuffer. | napi_object_expected | The input parameter arraybuffer is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_is_detached_arraybuffer | Checks whether the given ArrayBuffer has been detached. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_is_detached_arraybuffer | Checks whether the given ArrayBuffer has been detached. | napi_invalid_arg | The input parameter arraybuffer is nullptr. | Ensure that the input parameter is correct. |
| napi_is_detached_arraybuffer | Checks whether the given ArrayBuffer has been detached. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_is_detached_arraybuffer | Checks whether the given ArrayBuffer has been detached. | napi_invalid_arg | The input parameter arraybuffer is not of the ArkTS ArrayBuffer type. | Ensure that the input parameter is correct. |
| napi_run_script | Runs an object as ArkTS code. Currently, this API is an empty implementation. For security purposes, you are advised to use napi_run_script_path. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_run_script | Runs an object as ArkTS code. Currently, this API is an empty implementation. For security purposes, you are advised to use napi_run_script_path. | napi_invalid_arg | The input parameter script is nullptr. | Ensure that the input parameter is correct. |
| napi_run_script | Runs an object as ArkTS code. Currently, this API is an empty implementation. For security purposes, you are advised to use napi_run_script_path. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_set_instance_data | Associates data with the currently running environment. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_instance_data | Retrieves the data that was previously associated with the currently running environment. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_instance_data | Retrieves the data that was previously associated with the currently running environment. | napi_invalid_arg | The input parameter data is nullptr. | Ensure that the input parameter is correct. |
| napi_add_env_cleanup_hook | Adds a cleanup hook function for releasing resources when the environment exits. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_add_env_cleanup_hook | Adds a cleanup hook function for releasing resources when the environment exits. | napi_invalid_arg | The input parameter func is nullptr. | Ensure that the input parameter is correct. |
| napi_remove_env_cleanup_hook | Removes a cleanup hook function. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_remove_env_cleanup_hook | Removes a cleanup hook function. | napi_invalid_arg | The input parameter func is nullptr. | Ensure that the input parameter is correct. |
| napi_add_async_cleanup_hook | Adds an async cleanup hook function for releasing resources when the environment exits. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_add_async_cleanup_hook | Adds an async cleanup hook function for releasing resources when the environment exits. | napi_invalid_arg | The input parameter hook is nullptr. | Ensure that the input parameter is correct. |
| napi_remove_async_cleanup_hook | Removes an async cleanup hook function. | napi_invalid_arg | The input parameter remove_handle is nullptr. | Ensure that the input parameter is correct. |
| node_api_get_module_file_name | Obtains the absolute path of the module to be loaded. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| node_api_get_module_file_name | Obtains the absolute path of the module to be loaded. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_add_finalizer | Adds a napi_finalize callback, which will be called when the ArkTS object is garbage-collected. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_add_finalizer | Adds a napi_finalize callback, which will be called when the ArkTS object is garbage-collected. | napi_invalid_arg | The input parameter js_object is nullptr. | Ensure that the input parameter is correct. |
| napi_add_finalizer | Adds a napi_finalize callback, which will be called when the ArkTS object is garbage-collected. | napi_invalid_arg | The input parameter finalize_cb is nullptr. | Ensure that the input parameter is correct. |
| napi_add_finalizer | Adds a napi_finalize callback, which will be called when the ArkTS object is garbage-collected. | napi_object_expected | The input parameter js_object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_fatal_exception | Throws an UncaughtException to ArkTS. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_fatal_exception | Throws an UncaughtException to ArkTS. | napi_invalid_arg | The input parameter err is nullptr. | Ensure that the input parameter is correct. |
| napi_fatal_exception | Throws an UncaughtException to ArkTS. | napi_invalid_arg | The input parameter error is not of the ArkTS Error type. | Ensure that the input parameter is correct. |
| napi_fatal_exception | Throws an UncaughtException to ArkTS. | napi_pending_exception | An uncaught ArkTS exception occurs before the API is called. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_queue_async_work_with_qos | Adds an async work object to the queue and schedules it based on the QoS passed in. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_queue_async_work_with_qos | Adds an async work object to the queue and schedules it based on the QoS passed in. | napi_invalid_arg | The input parameter work is nullptr. | Ensure that the input parameter is correct. |
| napi_run_script_path | Runs an .abc file. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_run_script_path | Runs an .abc file. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_run_script_path | Runs an .abc file. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_load_module | Loads an .abc file as a module. This API returns the namespace of the module. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_load_module | Loads an .abc file as a module. This API returns the namespace of the module. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_load_module | Loads an .abc file as a module. This API returns the namespace of the module. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_create_object_with_properties | Creates an ArkTS object using the given napi_property_descriptor. The key of the descriptor must be a string and cannot be converted into a number. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_object_with_properties | Creates an ArkTS object using the given napi_property_descriptor. The key of the descriptor must be a string and cannot be converted into a number. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_object_with_named_properties | Creates an ArkTS object using the given napi_values and keys. The key must be a string and cannot be converted into a number. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_object_with_named_properties | Creates an ArkTS object using the given napi_values and keys. The key must be a string and cannot be converted into a number. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_coerce_to_native_binding_object | Forcibly binds an ArkTS object and a native object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_coerce_to_native_binding_object | Forcibly binds an ArkTS object and a native object. | napi_invalid_arg | The input parameter js_object is nullptr. | Ensure that the input parameter is correct. |
| napi_coerce_to_native_binding_object | Forcibly binds an ArkTS object and a native object. | napi_invalid_arg | The input parameter detach_cb is nullptr. | Ensure that the input parameter is correct. |
| napi_coerce_to_native_binding_object | Forcibly binds an ArkTS object and a native object. | napi_invalid_arg | The input parameter attach_cb is nullptr. | Ensure that the input parameter is correct. |
| napi_coerce_to_native_binding_object | Forcibly binds an ArkTS object and a native object. | napi_invalid_arg | The input parameter native_object is nullptr. | Ensure that the input parameter is correct. |
| napi_coerce_to_native_binding_object | Forcibly binds an ArkTS object and a native object. | napi_invalid_arg | Failed to create a C++ object. | The memory is insufficient. Check whether C++ memory leaks. |
| napi_coerce_to_native_binding_object | Forcibly binds an ArkTS object and a native object. | napi_object_expected | js_object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_coerce_to_native_binding_object | Forcibly binds an ArkTS object and a native object. | napi_generic_failure | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_create_ark_runtime | Creates an ArkTS runtime environment. | napi_invalid_arg | g_createNapiEnvCallback is nullptr. | NA |
| napi_create_ark_runtime | Creates an ArkTS runtime environment. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_ark_runtime | Creates an ArkTS runtime environment. | napi_create_ark_runtime_only_one_env_per_thread | The env has been created for the current thread. | Avoid repeated creation. |
| napi_create_ark_runtime | Creates an ArkTS runtime environment. | napi_create_ark_runtime_too_many_envs | ArkRuntime count has hit the maximum of 64, or the number of ArkTS threads has exceeded the limit of 80. | Avoid overusing the API. |
| napi_create_ark_runtime | Creates an ArkTS runtime environment. | napi_generic_failure | Failed to create ark_runtime. | Identify the causes based on the HiLog information. |
| napi_destroy_ark_runtime | Destroys an ArkTS runtime environment. | napi_invalid_arg | g_createNapiEnvCallback is nullptr. | NA |
| napi_destroy_ark_runtime | Destroys an ArkTS runtime environment. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_destroy_ark_runtime | Destroys an ArkTS runtime environment. | napi_destroy_ark_runtime_env_not_exist | The env is not created. | Use this API with the create API. |
| napi_run_event_loop | Runs an underlying event loop. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_run_event_loop | Runs an underlying event loop. | napi_invalid_arg | The input parameter mode is not of the napi_event_mode type. | Ensure that the input parameter is correct. |
| napi_run_event_loop | Runs an underlying event loop. | napi_invalid_arg | The loop of env is nullptr. | Ensure that the input parameter is correct. |
| napi_run_event_loop | Runs an underlying event loop. | napi_generic_failure | The current thread is not a native thread. | Use the env created by napi_create_ark_runtime. |
| napi_stop_event_loop | Stops an underlying event loop. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_stop_event_loop | Stops an underlying event loop. | napi_invalid_arg | The loop of env is nullptr. | Ensure that the input parameter is correct. |
| napi_stop_event_loop | Stops an underlying event loop. | napi_generic_failure | The current thread is not a native thread. | Use the env created by napi_create_ark_runtime. |
| napi_load_module_with_info | Loads an .abc file as a module. This API returns the namespace of the module. It can be used in a newly created ArkTS runtime environment. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_load_module_with_info | Loads an .abc file as a module. This API returns the namespace of the module. It can be used in a newly created ArkTS runtime environment. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_load_module_with_info | Loads an .abc file as a module. This API returns the namespace of the module. It can be used in a newly created ArkTS runtime environment. | napi_generic_failure | Failed to load the module. | Identify the causes based on the HiLog information. |
| napi_load_module_with_info | Loads an .abc file as a module. This API returns the namespace of the module. It can be used in a newly created ArkTS runtime environment. | napi_pending_exception | An uncaught ArkTS exception occurs before the API is called. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_serialize | Converts an ArkTS object into native data. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_serialize | Converts an ArkTS object into native data. | napi_invalid_arg | The input parameter object is nullptr. | Ensure that the input parameter is correct. |
| napi_serialize | Converts an ArkTS object into native data. | napi_invalid_arg | The input parameter transfer_list is nullptr. | Ensure that the input parameter is correct. |
| napi_serialize | Converts an ArkTS object into native data. | napi_invalid_arg | The input parameter clone_list is nullptr. | Ensure that the input parameter is correct. |
| napi_serialize | Converts an ArkTS object into native data. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_serialize | Converts an ArkTS object into native data. | napi_invalid_arg | The input parameter transfer_list is neither undefined nor an ArkTS array. | Ensure that the input parameter is correct. |
| napi_serialize | Converts an ArkTS object into native data. | napi_invalid_arg | The input parameter clone_list is neither undefined nor an ArkTS array. | Ensure that the input parameter is correct. |
| napi_deserialize | Converts native data into an ArkTS object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_deserialize | Converts native data into an ArkTS object. | napi_invalid_arg | The input parameter buffer is nullptr. | Ensure that the input parameter is correct. |
| napi_deserialize | Converts native data into an ArkTS object. | napi_invalid_arg | The input parameter object is nullptr. | Ensure that the input parameter is correct. |
| napi_delete_serialization_data | Deletes serialized data. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_delete_serialization_data | Deletes serialized data. | napi_invalid_arg | The input parameter buffer is nullptr. | Ensure that the input parameter is correct. |
| napi_call_threadsafe_function_with_priority | Calls a task with the specified priority and enqueuing mode into the ArkTS main thread. | napi_invalid_arg | The input parameter func is nullptr. | Ensure that the input parameter is correct. |
| napi_call_threadsafe_function_with_priority | Calls a task with the specified priority and enqueuing mode into the ArkTS main thread. | napi_invalid_arg | The input parameter priority is not of the napi_task_priority type. | Ensure that the input parameter is correct. |
| napi_call_threadsafe_function_with_priority | Calls a task with the specified priority and enqueuing mode into the ArkTS main thread. | napi_generic_failure | The input parameter func is invalid. | Identify the causes based on the HiLog information. |
| napi_call_threadsafe_function_with_priority | Calls a task with the specified priority and enqueuing mode into the ArkTS main thread. | napi_generic_failure | EventHandler is not supported or fails to be executed. | Identify the causes based on the HiLog information. |
| napi_is_sendable | Checks whether an ArkTS value is sendable. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_is_sendable | Checks whether an ArkTS value is sendable. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_is_sendable | Checks whether an ArkTS value is sendable. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_define_sendable_class | Creates a sendable class. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_define_sendable_class | Creates a sendable class. | napi_invalid_arg | The input parameter utf8name is nullptr. | Ensure that the input parameter is correct. |
| napi_define_sendable_class | Creates a sendable class. | napi_invalid_arg | The input parameter constructor is nullptr. | Ensure that the input parameter is correct. |
| napi_define_sendable_class | Creates a sendable class. | napi_invalid_arg | The input parameter property_count is greater than 0 and properties is nullptr. | Ensure that the input parameter is correct. |
| napi_define_sendable_class | Creates a sendable class. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_define_sendable_class | Creates a sendable class. | napi_object_expected | The input parameter length is not NAPI_AUTO_LENGTH, but exceeds INT_MAX. | Ensure that the input parameter is correct. |
| napi_define_sendable_class | Creates a sendable class. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_create_sendable_object_with_properties | Creates a sendable object with the given napi_property_descriptor. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_sendable_object_with_properties | Creates a sendable object with the given napi_property_descriptor. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_sendable_array | Creates a sendable array. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_sendable_array | Creates a sendable array. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_sendable_array_with_length | Creates a sendable array of the specified length. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_sendable_array_with_length | Creates a sendable array of the specified length. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_sendable_arraybuffer | Creates a sendable ArrayBuffer. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_sendable_arraybuffer | Creates a sendable ArrayBuffer. | napi_invalid_arg | The input parameter data is nullptr. | Ensure that the input parameter is correct. |
| napi_create_sendable_arraybuffer | Creates a sendable ArrayBuffer. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_sendable_arraybuffer | Creates a sendable ArrayBuffer. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_create_sendable_typedarray | Creates a sendable TypedArray. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_sendable_typedarray | Creates a sendable TypedArray. | napi_invalid_arg | The input parameter arraybuffer is nullptr. | Ensure that the input parameter is correct. |
| napi_create_sendable_typedarray | Creates a sendable TypedArray. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_sendable_typedarray | Creates a sendable TypedArray. | napi_invalid_arg | The input parameter type is not napi_typedarray_type. | Ensure that the input parameter is correct. |
| napi_create_sendable_typedarray | Creates a sendable TypedArray. | napi_object_expected | The input parameter arraybuffer is not of the SharedArrayBuffer type. | Ensure that the input parameter is correct. |
| napi_create_sendable_typedarray | Creates a sendable TypedArray. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_wrap_sendable | Wraps a native instance into an ArkTS object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_wrap_sendable | Wraps a native instance into an ArkTS object. | napi_invalid_arg | The input parameter js_object is nullptr. | Ensure that the input parameter is correct. |
| napi_wrap_sendable | Wraps a native instance into an ArkTS object. | napi_invalid_arg | The input parameter native_object is nullptr. | Ensure that the input parameter is correct. |
| napi_wrap_sendable | Wraps a native instance into an ArkTS object. | napi_object_expected | The input parameter js_object is not of the SendableObject type. | Ensure that the input parameter is correct. |
| napi_wrap_sendable | Wraps a native instance into an ArkTS object. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_wrap_sendable_with_size | Wraps a native instance of the specified size into an ArkTS object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_wrap_sendable_with_size | Wraps a native instance of the specified size into an ArkTS object. | napi_invalid_arg | The input parameter js_object is nullptr. | Ensure that the input parameter is correct. |
| napi_wrap_sendable_with_size | Wraps a native instance of the specified size into an ArkTS object. | napi_invalid_arg | The input parameter native_object is nullptr. | Ensure that the input parameter is correct. |
| napi_wrap_sendable_with_size | Wraps a native instance of the specified size into an ArkTS object. | napi_object_expected | The input parameter js_object is not of the SendableObject type. | Ensure that the input parameter is correct. |
| napi_wrap_sendable_with_size | Wraps a native instance of the specified size into an ArkTS object. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_unwrap_sendable | Unwraps the native instance from an ArkTS object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_unwrap_sendable | Unwraps the native instance from an ArkTS object. | napi_invalid_arg | The input parameter js_object is nullptr. | Ensure that the input parameter is correct. |
| napi_unwrap_sendable | Unwraps the native instance from an ArkTS object. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_unwrap_sendable | Unwraps the native instance from an ArkTS object. | napi_object_expected | The input parameter js_object is not of the SendableObject type. | Ensure that the input parameter is correct. |
| napi_unwrap_sendable | Unwraps the native instance from an ArkTS object. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_remove_wrap_sendable | Removes the native instance from an ArkTS object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_remove_wrap_sendable | Removes the native instance from an ArkTS object. | napi_invalid_arg | The input parameter js_object is nullptr. | Ensure that the input parameter is correct. |
| napi_remove_wrap_sendable | Removes the native instance from an ArkTS object. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_remove_wrap_sendable | Removes the native instance from an ArkTS object. | napi_object_expected | The input parameter js_object is not of the SendableObject type. | Ensure that the input parameter is correct. |
| napi_remove_wrap_sendable | Removes the native instance from an ArkTS object. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_wrap_enhance | Wraps a native instance of the specified size into an ArkTS object. During runtime, the instance size is counted and accumulated. When the accumulated size reaches the GC triggering threshold, the garbage collection process is started. You can specify whether to execute the registered callback asynchronously (if asynchronous, it must be thread-safe). | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_wrap_enhance | Wraps a native instance of the specified size into an ArkTS object. During runtime, the instance size is counted and accumulated. When the accumulated size reaches the GC triggering threshold, the garbage collection process is started. You can specify whether to execute the registered callback asynchronously (if asynchronous, it must be thread-safe). | napi_invalid_arg | The input parameter js_object is nullptr. | Ensure that the input parameter is correct. |
| napi_wrap_enhance | Wraps a native instance of the specified size into an ArkTS object. During runtime, the instance size is counted and accumulated. When the accumulated size reaches the GC triggering threshold, the garbage collection process is started. You can specify whether to execute the registered callback asynchronously (if asynchronous, it must be thread-safe). | napi_invalid_arg | The input parameter native_object is nullptr. | Ensure that the input parameter is correct. |
| napi_wrap_enhance | Wraps a native instance of the specified size into an ArkTS object. During runtime, the instance size is counted and accumulated. When the accumulated size reaches the GC triggering threshold, the garbage collection process is started. You can specify whether to execute the registered callback asynchronously (if asynchronous, it must be thread-safe). | napi_object_expected | The input parameter js_object is not of the ArkTS object type. | Ensure that the input parameter is correct. |
| napi_wrap_enhance | Wraps a native instance of the specified size into an ArkTS object. During runtime, the instance size is counted and accumulated. When the accumulated size reaches the GC triggering threshold, the garbage collection process is started. You can specify whether to execute the registered callback asynchronously (if asynchronous, it must be thread-safe). | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_create_ark_context | Creates a new runtime context environment. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_ark_context | Creates a new runtime context environment. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_switch_ark_context | Switches to the specified runtime context environment. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_switch_ark_context | Switches to the specified runtime context environment. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_destroy_ark_context | Destroys a context environment created by napi_create_ark_context. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_destroy_ark_context | Destroys a context environment created by napi_create_ark_context. | napi_pending_exception | An uncaught ArkTS exception occurs before or during the API call. | Handle the exception based on the exception information (HiLog/crash stack). |
| napi_open_critical_scope | Opens a critical scope. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_open_critical_scope | Opens a critical scope. | napi_invalid_arg | The input parameter scope is nullptr. | Ensure that the input parameter is correct. |
| napi_close_critical_scope | Closes a critical scope. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_close_critical_scope | Closes a critical scope. | napi_invalid_arg | The input parameter scope is nullptr. | Ensure that the input parameter is correct. |
| napi_get_buffer_string_utf16_in_critical_scope | Obtains the UTF-16 encoding memory buffer data of an ArkTS string. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_buffer_string_utf16_in_critical_scope | Obtains the UTF-16 encoding memory buffer data of an ArkTS string. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_get_buffer_string_utf16_in_critical_scope | Obtains the UTF-16 encoding memory buffer data of an ArkTS string. | napi_invalid_arg | The input parameter buffer is nullptr. | Ensure that the input parameter is correct. |
| napi_get_buffer_string_utf16_in_critical_scope | Obtains the UTF-16 encoding memory buffer data of an ArkTS string. | napi_invalid_arg | The input parameter length is nullptr. | Ensure that the input parameter is correct. |
| napi_create_strong_reference | Creates a strong reference to an ArkTS object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_strong_reference | Creates a strong reference to an ArkTS object. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_create_strong_reference | Creates a strong reference to an ArkTS object. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_delete_strong_reference | Deletes a strong reference. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_delete_strong_reference | Deletes a strong reference. | napi_invalid_arg | The input parameter ref is nullptr. | Ensure that the input parameter is correct. |
| napi_get_strong_reference_value | Obtains the ArkTS object value associated with a strong reference object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_strong_reference_value | Obtains the ArkTS object value associated with a strong reference object. | napi_invalid_arg | The input parameter ref is nullptr. | Ensure that the input parameter is correct. |
| napi_get_strong_reference_value | Obtains the ArkTS object value associated with a strong reference object. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_external_string_utf16 | Creates an ArkTS string from an external UTF-16 encoded string buffer, without performing memory copy operations. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_external_string_utf16 | Creates an ArkTS string from an external UTF-16 encoded string buffer, without performing memory copy operations. | napi_invalid_arg | The input parameter str is nullptr. | Ensure that the input parameter is correct. |
| napi_create_external_string_utf16 | Creates an ArkTS string from an external UTF-16 encoded string buffer, without performing memory copy operations. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_external_string_utf16 | Creates an ArkTS string from an external UTF-16 encoded string buffer, without performing memory copy operations. | napi_invalid_arg | The input parameter length is not NAPI_AUTO_LENGTH or its value is greater than INT_MAX. | Ensure that the input parameter length is NAPI_AUTO_LENGTH and its value is not greater than INT_MAX. |
| napi_create_external_string_ascii | Creates an ArkTS string from an external ASCII encoded string buffer, without performing memory copy operations. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_external_string_ascii | Creates an ArkTS string from an external ASCII encoded string buffer, without performing memory copy operations. | napi_invalid_arg | The input parameter str is nullptr. | Ensure that the input parameter is correct. |
| napi_create_external_string_ascii | Creates an ArkTS string from an external ASCII encoded string buffer, without performing memory copy operations. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_external_string_ascii | Creates an ArkTS string from an external ASCII encoded string buffer, without performing memory copy operations. | napi_invalid_arg | The input parameter length is not NAPI_AUTO_LENGTH or its value is greater than INT_MAX. | Ensure that the input parameter length is NAPI_AUTO_LENGTH and its value is not greater than INT_MAX. |
| napi_create_strong_sendable_reference | Creates a Sendable strong reference to a Sendable ArkTS object. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_create_strong_sendable_reference | Creates a Sendable strong reference to a Sendable ArkTS object. | napi_invalid_arg | The input parameter value is nullptr. | Ensure that the input parameter is correct. |
| napi_create_strong_sendable_reference | Creates a Sendable strong reference to a Sendable ArkTS object. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_create_strong_sendable_reference | Creates a Sendable strong reference to a Sendable ArkTS object. | napi_invalid_arg | The input parameter env is not the main context. | Ensure that the input parameter is correct. |
| napi_create_strong_sendable_reference | Creates a Sendable strong reference to a Sendable ArkTS object. | napi_object_expected | The input parameter value is not sendable. | Ensure that the input parameter is correct. |
| napi_delete_strong_sendable_reference | Deletes a Sendable strong reference. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_delete_strong_sendable_reference | Deletes a Sendable strong reference. | napi_invalid_arg | The input parameter ref is nullptr. | Ensure that the input parameter is correct. |
| napi_delete_strong_sendable_reference | Deletes a Sendable strong reference. | napi_invalid_arg | The input parameter env is not the main context. | Ensure that the input parameter is correct. |
| napi_delete_strong_sendable_reference | Deletes a Sendable strong reference. | napi_generic_failure | The napi_value obtained from napi_sendable_ref is not sendable. | Ensure that the input parameter is correct. |
| napi_get_strong_sendable_reference_value | Obtains the ArkTS object value associated with a Sendable strong reference. | napi_invalid_arg | The input parameter env is nullptr. | Ensure that the input parameter is correct. |
| napi_get_strong_sendable_reference_value | Obtains the ArkTS object value associated with a Sendable strong reference. | napi_invalid_arg | The input parameter ref is nullptr. | Ensure that the input parameter is correct. |
| napi_get_strong_sendable_reference_value | Obtains the ArkTS object value associated with a Sendable strong reference. | napi_invalid_arg | The input parameter result is nullptr. | Ensure that the input parameter is correct. |
| napi_get_strong_sendable_reference_value | Obtains the ArkTS object value associated with a Sendable strong reference. | napi_invalid_arg | The input parameter env is not the main context. | Ensure that the input parameter is correct. |
| napi_get_strong_sendable_reference_value | Obtains the ArkTS object value associated with a Sendable strong reference. | napi_generic_failure | The napi_value obtained from napi_sendable_ref is not sendable. | Ensure that the input parameter is correct. |