openharmony 鸿蒙 napi_status_introduction

2026-08-25 浏览 (1)

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

APIDescriptionNon-napi_ok Status CodeCauseSolution
napi_module_registerRegisters a native module.N/AN/AN/A
napi_get_last_error_infoObtains the napi_extended_error_info struct, which contains the latest error information.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_last_error_infoObtains the napi_extended_error_info struct, which contains the latest error information.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_throwThrows an ArkTS error.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_throwThrows an ArkTS error.napi_invalid_argThe input parameter error is nullptr.Ensure that the input parameter is correct.
napi_throwThrows an ArkTS error.napi_invalid_argThe input parameter error is not of the ArkTS Error type.Ensure that the input parameter is correct.
napi_throw_errorThrows an ArkTS error with text information.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_throw_errorThrows an ArkTS error with text information.napi_invalid_argThe input parameter msg is nullptr.Ensure that the input parameter is correct.
napi_throw_business_errorThrows an ArkTS error with text information, where the code property of the error object is of the number type.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_throw_business_errorThrows an ArkTS error with text information, where the code property of the error object is of the number type.napi_invalid_argThe input parameter msg is nullptr.Ensure that the input parameter is correct.
napi_throw_business_errorThrows an ArkTS error with text information, where the code property of the error object is of the number type.napi_pending_exceptionAn uncaught ArkTS error occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_throw_type_errorThrows an ArkTS TypeError with text information.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_throw_type_errorThrows an ArkTS TypeError with text information.napi_invalid_argThe input parameter msg is nullptr.Ensure that the input parameter is correct.
napi_throw_range_errorThrows an ArkTS RangeError with text information.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_throw_range_errorThrows an ArkTS RangeError with text information.napi_invalid_argThe input parameter msg is nullptr.Ensure that the input parameter is correct.
napi_is_errorChecks whether napi_value indicates an error object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_is_errorChecks whether napi_value indicates an error object.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_is_errorChecks whether napi_value indicates an error object.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_errorCreates an ArkTS error object with text information.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_errorCreates an ArkTS error object with text information.napi_invalid_argThe input parameter msg is nullptr.Ensure that the input parameter is correct.
napi_create_errorCreates an ArkTS error object with text information.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_errorCreates an ArkTS error object with text information.napi_invalid_argThe 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_errorCreates an ArkTS error object with text information.napi_invalid_argThe input parameter msg is not nullptr, but is not of the ArkTS string type.Ensure that the input parameter is correct.
napi_create_type_errorCreates an ArkTS TypeError with text information.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_type_errorCreates an ArkTS TypeError with text information.napi_invalid_argThe input parameter msg is nullptr.Ensure that the input parameter is correct.
napi_create_type_errorCreates an ArkTS TypeError with text information.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_type_errorCreates an ArkTS TypeError with text information.napi_invalid_argThe 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_errorCreates an ArkTS TypeError with text information.napi_invalid_argThe input parameter msg is not nullptr, but is not of the ArkTS string type.Ensure that the input parameter is correct.
napi_create_range_errorCreates an ArkTS RangeError with text information.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_range_errorCreates an ArkTS RangeError with text information.napi_invalid_argThe input parameter msg is nullptr.Ensure that the input parameter is correct.
napi_create_range_errorCreates an ArkTS RangeError with text information.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_range_errorCreates an ArkTS RangeError with text information.napi_invalid_argThe 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_errorCreates an ArkTS RangeError with text information.napi_invalid_argThe 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_exceptionObtains and clears the latest exception.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_and_clear_last_exceptionObtains and clears the latest exception.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_is_exception_pendingChecks whether an exception occurs.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_is_exception_pendingChecks whether an exception occurs.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_fatal_errorRaises a fatal error to terminate the process immediately.N/AN/AN/A
napi_open_handle_scopeOpens a scope.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_open_handle_scopeOpens a scope.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_close_handle_scopeCloses the scope passed in. After a scope is closed, all references declared in it are closed.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_close_handle_scopeCloses the scope passed in. After a scope is closed, all references declared in it are closed.napi_invalid_argThe input parameter scope is nullptr.Ensure that the input parameter is correct.
napi_close_handle_scopeCloses the scope passed in. After a scope is closed, all references declared in it are closed.napi_handle_scope_mismatchnapi_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_scopeOpens an escapable handle scope, from which the declared values can be returned to the parent scope.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_open_escapable_handle_scopeOpens an escapable handle scope, from which the declared values can be returned to the parent scope.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_close_escapable_handle_scopeCloses the escapable handle scope passed in.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_close_escapable_handle_scopeCloses the escapable handle scope passed in.napi_invalid_argThe input parameter scope is nullptr.Ensure that the input parameter is correct.
napi_close_escapable_handle_scopeCloses the escapable handle scope passed in.napi_handle_scope_mismatchnapi_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_handlePromotes the handle to the input ArkTS object so that it is valid for the lifespan of its parent scope.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_escape_handlePromotes the handle to the input ArkTS object so that it is valid for the lifespan of its parent scope.napi_invalid_argThe input parameter scope is nullptr.Ensure that the input parameter is correct.
napi_escape_handlePromotes the handle to the input ArkTS object so that it is valid for the lifespan of its parent scope.napi_invalid_argThe input parameter escapee is nullptr.Ensure that the input parameter is correct.
napi_escape_handlePromotes the handle to the input ArkTS object so that it is valid for the lifespan of its parent scope.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_escape_handlePromotes the handle to the input ArkTS object so that it is valid for the lifespan of its parent scope.napi_escape_called_twiceThe scope has called napi_escape_handle.Do not call napi_escape_handle repeatedly.
napi_create_referenceCreates a reference for an object to extend its lifespan. The caller needs to manage the reference lifespan.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_referenceCreates a reference for an object to extend its lifespan. The caller needs to manage the reference lifespan.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_create_referenceCreates a reference for an object to extend its lifespan. The caller needs to manage the reference lifespan.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_delete_referenceDeletes the reference passed in.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_delete_referenceDeletes the reference passed in.napi_invalid_argThe input parameter ref is nullptr.Ensure that the input parameter is correct.
napi_reference_refIncrements the reference count for the reference passed in and returns the count.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_reference_refIncrements the reference count for the reference passed in and returns the count.napi_invalid_argThe input parameter ref is nullptr.Ensure that the input parameter is correct.
napi_reference_unrefDecrements the reference count for the reference passed in and returns the count.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_reference_unrefDecrements the reference count for the reference passed in and returns the count.napi_invalid_argThe input parameter ref is nullptr.Ensure that the input parameter is correct.
napi_get_reference_valueObtains the ArkTS object associated with the reference.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_reference_valueObtains the ArkTS object associated with the reference.napi_invalid_argThe input parameter ref is nullptr.Ensure that the input parameter is correct.
napi_get_reference_valueObtains the ArkTS object associated with the reference.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_arrayCreates an ArkTS array.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_arrayCreates an ArkTS array.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_array_with_lengthCreates an ArkTS array of the specified length.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_array_with_lengthCreates an ArkTS array of the specified length.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_arraybufferCreates an ArkTS ArrayBuffer of the specified size.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_arraybufferCreates an ArkTS ArrayBuffer of the specified size.napi_invalid_argThe input parameter data is nullptr.Ensure that the input parameter is correct.
napi_create_arraybufferCreates an ArkTS ArrayBuffer of the specified size.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_arraybufferCreates an ArkTS ArrayBuffer of the specified size.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_create_externalCreates an ArkTS value with external data.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_externalCreates an ArkTS value with external data.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_externalCreates an ArkTS value with external data.napi_pending_exceptionAn uncaught ArkTS exception occurs before the API is called.Handle the exception based on the exception information (HiLog/crash stack).
napi_create_external_arraybufferCreates an ArkTS ArrayBuffer with external data.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_external_arraybufferCreates an ArkTS ArrayBuffer with external data.napi_invalid_argThe input parameter external_data is nullptr.Ensure that the input parameter is correct.
napi_create_external_arraybufferCreates an ArkTS ArrayBuffer with external data.napi_invalid_argThe input parameter finalize_cb is nullptr.Ensure that the input parameter is correct.
napi_create_external_arraybufferCreates an ArkTS ArrayBuffer with external data.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_external_arraybufferCreates an ArkTS ArrayBuffer with external data.napi_pending_exceptionAn uncaught ArkTS exception occurs before the API is called.Handle the exception based on the exception information (HiLog/crash stack).
napi_create_objectCreates a default ArkTS object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_objectCreates a default ArkTS object.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_symbolCreates an ArkTS symbol.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_symbolCreates an ArkTS symbol.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_symbolCreates an ArkTS symbol.napi_invalid_argThe input parameter description is neither nullptr nor a ArkTS string.Ensure that the input parameter is correct.
napi_create_typedarrayCreates an ArkTS TypeArray from an existing ArrayBuffer.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_typedarrayCreates an ArkTS TypeArray from an existing ArrayBuffer.napi_invalid_argThe input parameter arraybuffer is nullptr.Ensure that the input parameter is correct.
napi_create_typedarrayCreates an ArkTS TypeArray from an existing ArrayBuffer.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_typedarrayCreates an ArkTS TypeArray from an existing ArrayBuffer.napi_invalid_argThe input parameter type is not napi_typedarray_type.Ensure that the input parameter is correct.
napi_create_typedarrayCreates an ArkTS TypeArray from an existing ArrayBuffer.napi_arraybuffer_expectedThe input parameter arraybuffer is not of the ArkTS ArrayBuffer type.Ensure that the input parameter is correct.
napi_create_typedarrayCreates an ArkTS TypeArray from an existing ArrayBuffer.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_create_dataviewCreates an ArkTS DataView from an existing ArrayBuffer.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_dataviewCreates an ArkTS DataView from an existing ArrayBuffer.napi_invalid_argThe input parameter arraybuffer is nullptr.Ensure that the input parameter is correct.
napi_create_dataviewCreates an ArkTS DataView from an existing ArrayBuffer.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_dataviewCreates an ArkTS DataView from an existing ArrayBuffer.napi_arraybuffer_expectedThe input parameter arraybuffer is not of the ArkTS ArrayBuffer type.Ensure that the input parameter is correct.
napi_create_dataviewCreates an ArkTS DataView from an existing ArrayBuffer.napi_pending_exceptionThe sum of the input parameters length and byte_offset exceeds the byte length of the input parameter arraybuffer.Check the access length.
napi_create_dataviewCreates an ArkTS DataView from an existing ArrayBuffer.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_create_int32Creates an ArkTS number from C int32_t data.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_int32Creates an ArkTS number from C int32_t data.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_uint32Creates an ArkTS number from C uint32_t data.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_uint32Creates an ArkTS number from C uint32_t data.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_int64Creates an ArkTS number from C int64_t data.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_int64Creates an ArkTS number from C int64_t data.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_doubleCreates an ArkTS number from C double data.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_doubleCreates an ArkTS number from C double data.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_string_latin1Creates an ArkTS string from an ISO-8859-1-encoded C string.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_string_latin1Creates an ArkTS string from an ISO-8859-1-encoded C string.napi_invalid_argThe input parameter str is nullptr.Ensure that the input parameter is correct.
napi_create_string_latin1Creates an ArkTS string from an ISO-8859-1-encoded C string.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_string_utf8Creates an ArkTS string from a UTF8-encoded C string.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_string_utf8Creates an ArkTS string from a UTF8-encoded C string.napi_invalid_argThe input parameter str is nullptr.Ensure that the input parameter is correct.
napi_create_string_utf8Creates an ArkTS string from a UTF8-encoded C string.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_string_utf16Creates an ArkTS string from a UTF16-encoded C string.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_string_utf16Creates an ArkTS string from a UTF16-encoded C string.napi_invalid_argThe input parameter str is nullptr.Ensure that the input parameter is correct.
napi_create_string_utf16Creates an ArkTS string from a UTF16-encoded C string.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_string_utf16Creates an ArkTS string from a UTF16-encoded C string.napi_invalid_argThe input parameter length is not NAPI_AUTO_LENGTH, but exceeds INT_MAX.Ensure that the input parameter is correct.
napi_get_array_lengthObtains the length of an array.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_array_lengthObtains the length of an array.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_get_array_lengthObtains the length of an array.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_get_array_lengthObtains the length of an array.napi_array_expectedThe 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_lengthObtains the length of an array.napi_pending_exceptionAn uncaught ArkTS exception occurs before the API is called.Handle the exception based on the exception information (HiLog/crash stack).
napi_get_arraybuffer_infoObtains the underlying data buffer of an ArrayBuffer and its length.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_arraybuffer_infoObtains the underlying data buffer of an ArrayBuffer and its length.napi_invalid_argThe input parameter arraybuffer is nullptr.Ensure that the input parameter is correct.
napi_get_arraybuffer_infoObtains the underlying data buffer of an ArrayBuffer and its length.napi_invalid_argThe input parameter byte_length is nullptr.Ensure that the input parameter is correct.
napi_get_arraybuffer_infoObtains the underlying data buffer of an ArrayBuffer and its length.napi_arraybuffer_expectedThe input parameter arraybuffer is neither of the ArkTS ArrayBuffer type nor of the SharedArrayBuffer type.Ensure that the input parameter is correct.
napi_get_prototypeObtains the prototype of an ArkTS object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_prototypeObtains the prototype of an ArkTS object.napi_invalid_argThe input parameter object is nullptr.Ensure that the input parameter is correct.
napi_get_prototypeObtains the prototype of an ArkTS object.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_get_prototypeObtains the prototype of an ArkTS object.napi_object_expectedThe input parameter object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_get_prototypeObtains the prototype of an ArkTS object.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_get_typedarray_infoObtains the properties of a TypedArray.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_typedarray_infoObtains the properties of a TypedArray.napi_invalid_argThe input parameter typedarray is nullptr.Ensure that the input parameter is correct.
napi_get_typedarray_infoObtains the properties of a TypedArray.napi_invalid_argThe 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_infoObtains the properties of a DataView.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_dataview_infoObtains the properties of a DataView.napi_invalid_argThe input parameter dataview is nullptr.Ensure that the input parameter is correct.
napi_get_dataview_infoObtains the properties of a DataView.napi_invalid_argThe input parameter dataview is not of the ArkTS DataView type.Ensure that the input parameter is correct.
napi_get_value_boolObtains the C bool equivalent of an ArkTS Boolean value.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_value_boolObtains the C bool equivalent of an ArkTS Boolean value.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_get_value_boolObtains the C bool equivalent of an ArkTS Boolean value.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_get_value_boolObtains the C bool equivalent of an ArkTS Boolean value.napi_boolean_expectedThe input parameter value is not of the ArkTS Boolean type.Ensure that the input parameter is correct.
napi_get_value_doubleObtains the C double equivalent of an ArkTS number.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_value_doubleObtains the C double equivalent of an ArkTS number.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_get_value_doubleObtains the C double equivalent of an ArkTS number.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_get_value_doubleObtains the C double equivalent of an ArkTS number.napi_number_expectedThe input parameter value is not of the ArkTS number type.Ensure that the input parameter is correct.
napi_get_value_externalObtains the external data pointer previously passed through napi_create_external().napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_value_externalObtains the external data pointer previously passed through napi_create_external().napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_get_value_externalObtains the external data pointer previously passed through napi_create_external().napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_get_value_externalObtains the external data pointer previously passed through napi_create_external().napi_object_expectedThe input parameter value is not of the external type.Ensure that the input parameter is correct.
napi_get_value_int32Obtains the C int32 equivalent of an ArkTS number.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_value_int32Obtains the C int32 equivalent of an ArkTS number.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_get_value_int32Obtains the C int32 equivalent of an ArkTS number.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_get_value_int32Obtains the C int32 equivalent of an ArkTS number.napi_number_expectedThe input parameter value is not of the ArkTS number type.Ensure that the input parameter is correct.
napi_get_value_int64Obtains the C int64 equivalent of an ArkTS number.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_value_int64Obtains the C int64 equivalent of an ArkTS number.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_get_value_int64Obtains the C int64 equivalent of an ArkTS number.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_get_value_int64Obtains the C int64 equivalent of an ArkTS number.napi_number_expectedThe input parameter value is not of the ArkTS number type.Ensure that the input parameter is correct.
napi_get_value_string_latin1Obtains the ISO-8859-1-encoded string corresponding to the given ArkTS value.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_value_string_latin1Obtains the ISO-8859-1-encoded string corresponding to the given ArkTS value.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_get_value_string_latin1Obtains the ISO-8859-1-encoded string corresponding to the given ArkTS value.napi_invalid_argBoth buf and result are nullptr.Ensure that the input parameter is correct.
napi_get_value_string_latin1Obtains the ISO-8859-1-encoded string corresponding to the given ArkTS value.napi_string_expectedThe input parameter value is not of the ArkTS string type.Ensure that the input parameter is correct.
napi_get_value_string_utf8Obtains the UTF8-encoded string corresponding to the given ArkTS value.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_value_string_utf8Obtains the UTF8-encoded string corresponding to the given ArkTS value.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_get_value_string_utf8Obtains the UTF8-encoded string corresponding to the given ArkTS value.napi_invalid_argBoth buf and result are nullptr.Ensure that the input parameter is correct.
napi_get_value_string_utf8Obtains the UTF8-encoded string corresponding to the given ArkTS value.napi_string_expectedThe input parameter value is not of the ArkTS string type.Ensure that the input parameter is correct.
napi_get_value_string_utf16Obtains the UTF16-encoded string corresponding to the given ArkTS value.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_value_string_utf16Obtains the UTF16-encoded string corresponding to the given ArkTS value.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_get_value_string_utf16Obtains the UTF16-encoded string corresponding to the given ArkTS value.napi_invalid_argBoth buf and result are nullptr.Ensure that the input parameter is correct.
napi_get_value_string_utf16Obtains the UTF16-encoded string corresponding to the given ArkTS value.napi_string_expectedThe input parameter value is not of the ArkTS string type.Ensure that the input parameter is correct.
napi_get_value_uint32Obtains the C uint32 equivalent of an ArkTS number.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_value_uint32Obtains the C uint32 equivalent of an ArkTS number.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_get_value_uint32Obtains the C uint32 equivalent of an ArkTS number.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_get_value_uint32Obtains the C uint32 equivalent of an ArkTS number.napi_number_expectedThe input parameter value is not of the ArkTS number type.Ensure that the input parameter is correct.
napi_get_booleanObtains an ArkTS bool object based on a C boolean value.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_booleanObtains an ArkTS bool object based on a C boolean value.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_get_globalObtains the global object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_globalObtains the global object.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_get_nullObtains the null object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_nullObtains the null object.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_get_undefinedObtains the undefined object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_undefinedObtains the undefined object.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_coerce_to_boolForcibly converts an ArkTS value to an ArkTS boolean.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_coerce_to_boolForcibly converts an ArkTS value to an ArkTS boolean.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_coerce_to_boolForcibly converts an ArkTS value to an ArkTS boolean.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_coerce_to_boolForcibly converts an ArkTS value to an ArkTS boolean.napi_pending_exceptionAn uncaught ArkTS exception occurs before the API is called.Handle the exception based on the exception information (HiLog/crash stack).
napi_coerce_to_numberForcibly converts an ArkTS value to an ArkTS number.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_coerce_to_numberForcibly converts an ArkTS value to an ArkTS number.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_coerce_to_numberForcibly converts an ArkTS value to an ArkTS number.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_coerce_to_objectForcibly converts an ArkTS value to an ArkTS object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_coerce_to_objectForcibly converts an ArkTS value to an ArkTS object.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_coerce_to_objectForcibly converts an ArkTS value to an ArkTS object.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_coerce_to_stringForcibly converts an ArkTS value to an ArkTS string.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_coerce_to_stringForcibly converts an ArkTS value to an ArkTS string.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_coerce_to_stringForcibly converts an ArkTS value to an ArkTS string.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_typeofObtains the type of an ArkTS value.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_typeofObtains the type of an ArkTS value.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_typeofObtains the type of an ArkTS value.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_instanceofChecks whether the given object is an instance of the specified constructor.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_instanceofChecks whether the given object is an instance of the specified constructor.napi_invalid_argThe input parameter object is nullptr.Ensure that the input parameter is correct.
napi_instanceofChecks whether the given object is an instance of the specified constructor.napi_invalid_argThe input parameter constructor is nullptr.Ensure that the input parameter is correct.
napi_instanceofChecks whether the given object is an instance of the specified constructor.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_instanceofChecks whether the given object is an instance of the specified constructor.napi_object_expectedThe input parameter object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_instanceofChecks whether the given object is an instance of the specified constructor.napi_function_expectedThe input parameter constructor is not of the ArkTS function type.Ensure that the input parameter is correct.
napi_instanceofChecks whether the given object is an instance of the specified constructor.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_is_arrayChecks whether the given ArkTS value is an array.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_is_arrayChecks whether the given ArkTS value is an array.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_is_arrayChecks whether the given ArkTS value is an array.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_is_arraybufferChecks whether the given ArkTS value is an ArrayBuffer object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_is_arraybufferChecks whether the given ArkTS value is an ArrayBuffer object.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_is_arraybufferChecks whether the given ArkTS value is an ArrayBuffer object.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_is_typedarrayChecks whether an ArkTS value is a TypedArray.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_is_typedarrayChecks whether an ArkTS value is a TypedArray.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_is_typedarrayChecks whether an ArkTS value is a TypedArray.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_is_dataviewChecks whether an ArkTS value is a DataView.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_is_dataviewChecks whether an ArkTS value is a DataView.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_is_dataviewChecks whether an ArkTS value is a DataView.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_is_dateChecks whether an ArkTS value is an ArkTS Date object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_is_dateChecks whether an ArkTS value is an ArkTS Date object.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_is_dateChecks whether an ArkTS value is an ArkTS Date object.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_strict_equalsChecks whether two ArkTS values are strictly equal.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_strict_equalsChecks whether two ArkTS values are strictly equal.napi_invalid_argThe input parameter lhs is nullptr.Ensure that the input parameter is correct.
napi_strict_equalsChecks whether two ArkTS values are strictly equal.napi_invalid_argThe input parameter rhs is nullptr.Ensure that the input parameter is correct.
napi_strict_equalsChecks whether two ArkTS values are strictly equal.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_get_property_namesObtains the names of the enumerable properties of an object in an array of strings.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_property_namesObtains the names of the enumerable properties of an object in an array of strings.napi_invalid_argThe input parameter object is nullptr.Ensure that the input parameter is correct.
napi_get_property_namesObtains the names of the enumerable properties of an object in an array of strings.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_get_property_namesObtains the names of the enumerable properties of an object in an array of strings.napi_object_expectedThe input parameter object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_set_propertySets a property for an object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_set_propertySets a property for an object.napi_invalid_argThe input parameter object is nullptr.Ensure that the input parameter is correct.
napi_set_propertySets a property for an object.napi_invalid_argThe input parameter key is nullptr.Ensure that the input parameter is correct.
napi_set_propertySets a property for an object.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_set_propertySets a property for an object.napi_object_expectedThe input parameter object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_set_propertySets a property for an object.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_get_propertyObtains the requested property of an object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_propertyObtains the requested property of an object.napi_invalid_argThe input parameter object is nullptr.Ensure that the input parameter is correct.
napi_get_propertyObtains the requested property of an object.napi_invalid_argThe input parameter key is nullptr.Ensure that the input parameter is correct.
napi_get_propertyObtains the requested property of an object.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_get_propertyObtains the requested property of an object.napi_object_expectedThe input parameter object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_get_propertyObtains the requested property of an object.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_has_propertyChecks whether an object has the specified property.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_has_propertyChecks whether an object has the specified property.napi_invalid_argThe input parameter object is nullptr.Ensure that the input parameter is correct.
napi_has_propertyChecks whether an object has the specified property.napi_invalid_argThe input parameter key is nullptr.Ensure that the input parameter is correct.
napi_has_propertyChecks whether an object has the specified property.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_has_propertyChecks whether an object has the specified property.napi_object_expectedThe input parameter object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_has_propertyChecks whether an object has the specified property.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_delete_propertyDeletes a property from an object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_delete_propertyDeletes a property from an object.napi_invalid_argThe input parameter object is nullptr.Ensure that the input parameter is correct.
napi_delete_propertyDeletes a property from an object.napi_invalid_argThe input parameter key is nullptr.Ensure that the input parameter is correct.
napi_delete_propertyDeletes a property from an object.napi_object_expectedThe input parameter object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_delete_propertyDeletes a property from an object.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_has_own_propertyChecks whether an object has the own property specified by key.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_has_own_propertyChecks whether an object has the own property specified by key.napi_invalid_argThe input parameter object is nullptr.Ensure that the input parameter is correct.
napi_has_own_propertyChecks whether an object has the own property specified by key.napi_invalid_argThe input parameter key is nullptr.Ensure that the input parameter is correct.
napi_has_own_propertyChecks whether an object has the own property specified by key.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_has_own_propertyChecks whether an object has the own property specified by key.napi_object_expectedThe input parameter object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_has_own_propertyChecks whether an object has the own property specified by key.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_set_named_propertySets a property with the specified name for an object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_set_named_propertySets a property with the specified name for an object.napi_invalid_argThe input parameter object is nullptr.Ensure that the input parameter is correct.
napi_set_named_propertySets a property with the specified name for an object.napi_invalid_argThe input parameter utf8name is nullptr.Ensure that the input parameter is correct.
napi_set_named_propertySets a property with the specified name for an object.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_set_named_propertySets a property with the specified name for an object.napi_object_expectedThe input parameter object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_set_named_propertySets a property with the specified name for an object.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_get_named_propertyObtains the property with the specified name in an object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_named_propertyObtains the property with the specified name in an object.napi_invalid_argThe input parameter object is nullptr.Ensure that the input parameter is correct.
napi_get_named_propertyObtains the property with the specified name in an object.napi_invalid_argThe input parameter utf8name is nullptr.Ensure that the input parameter is correct.
napi_get_named_propertyObtains the property with the specified name in an object.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_get_named_propertyObtains the property with the specified name in an object.napi_object_expectedThe input parameter object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_get_named_propertyObtains the property with the specified name in an object.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_has_named_propertyChecks whether an object has the property with the specified name.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_has_named_propertyChecks whether an object has the property with the specified name.napi_invalid_argThe input parameter object is nullptr.Ensure that the input parameter is correct.
napi_has_named_propertyChecks whether an object has the property with the specified name.napi_invalid_argThe input parameter utf8name is nullptr.Ensure that the input parameter is correct.
napi_has_named_propertyChecks whether an object has the property with the specified name.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_has_named_propertyChecks whether an object has the property with the specified name.napi_object_expectedThe input parameter object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_has_named_propertyChecks whether an object has the property with the specified name.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_set_elementSets an element at the specified index of an object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_set_elementSets an element at the specified index of an object.napi_invalid_argThe input parameter object is nullptr.Ensure that the input parameter is correct.
napi_set_elementSets an element at the specified index of an object.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_set_elementSets an element at the specified index of an object.napi_object_expectedThe input parameter object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_set_elementSets an element at the specified index of an object.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_get_elementObtains the element at the specified index of an object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_elementObtains the element at the specified index of an object.napi_invalid_argThe input parameter object is nullptr.Ensure that the input parameter is correct.
napi_get_elementObtains the element at the specified index of an object.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_get_elementObtains the element at the specified index of an object.napi_object_expectedThe input parameter object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_get_elementObtains the element at the specified index of an object.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_has_elementObtains the element if the object has an element at the specified index.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_has_elementObtains the element if the object has an element at the specified index.napi_invalid_argThe input parameter object is nullptr.Ensure that the input parameter is correct.
napi_has_elementObtains the element if the object has an element at the specified index.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_has_elementObtains the element if the object has an element at the specified index.napi_object_expectedThe input parameter object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_has_elementObtains the element if the object has an element at the specified index.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_delete_elementDeletes the element at the specified index of an object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_delete_elementDeletes the element at the specified index of an object.napi_invalid_argThe input parameter object is nullptr.Ensure that the input parameter is correct.
napi_delete_elementDeletes the element at the specified index of an object.napi_object_expectedThe input parameter object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_delete_elementDeletes the element at the specified index of an object.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_define_propertiesDefines multiple properties for an object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_define_propertiesDefines multiple properties for an object.napi_invalid_argThe input parameter object is nullptr.Ensure that the input parameter is correct.
napi_define_propertiesDefines multiple properties for an object.napi_invalid_argThe input parameter properties is nullptr.Ensure that the input parameter is correct.
napi_define_propertiesDefines multiple properties for an object.napi_object_expectedThe input parameter object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_define_propertiesDefines multiple properties for an object.napi_name_expectedutf8name 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_propertiesDefines multiple properties for an object.napi_pending_exceptionAn uncaught ArkTS exception occurs before the API is called.Handle the exception based on the exception information (HiLog/crash stack).
napi_type_tag_objectAssociates the value of the tag pointer with a JS object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_type_tag_objectAssociates the value of the tag pointer with a JS object.napi_invalid_argThe input parameter js_object is nullptr.Ensure that the input parameter is correct.
napi_type_tag_objectAssociates the value of the tag pointer with a JS object.napi_invalid_argThe input parameter type_tag is nullptr.Ensure that the input parameter is correct.
napi_type_tag_objectAssociates the value of the tag pointer with a JS object.napi_invalid_argThe ArkTS object has been tagged.Ensure that the ArkTS object is not tagged.
napi_type_tag_objectAssociates the value of the tag pointer with a JS object.napi_invalid_argAn uncaught ArkTS exception occurs during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_type_tag_objectAssociates the value of the tag pointer with a JS object.napi_object_expectedThe input parameter js_object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_type_tag_objectAssociates the value of the tag pointer with a JS object.napi_pending_exceptionAn uncaught ArkTS exception occurs before the API is called.Handle the exception based on the exception information (HiLog/crash stack).
napi_check_object_type_tagChecks whether a tag pointer is associated with an ArkTS object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_check_object_type_tagChecks whether a tag pointer is associated with an ArkTS object.napi_invalid_argThe input parameter js_object is nullptr.Ensure that the input parameter is correct.
napi_check_object_type_tagChecks whether a tag pointer is associated with an ArkTS object.napi_invalid_argThe input parameter type_tag is nullptr.Ensure that the input parameter is correct.
napi_check_object_type_tagChecks whether a tag pointer is associated with an ArkTS object.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_check_object_type_tagChecks whether a tag pointer is associated with an ArkTS object.napi_object_expectedThe input parameter js_object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_check_object_type_tagChecks whether a tag pointer is associated with an ArkTS object.napi_pending_exceptionAn uncaught ArkTS exception occurs before the API is called.Handle the exception based on the exception information (HiLog/crash stack).
napi_call_functionCalls an ArkTS function in a native method, that is, native calls ArkTS.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_call_functionCalls an ArkTS function in a native method, that is, native calls ArkTS.napi_invalid_argThe input parameter func is nullptr.Ensure that the input parameter is correct.
napi_call_functionCalls an ArkTS function in a native method, that is, native calls ArkTS.napi_invalid_argThe input parameter argc is greater than 0 and argv is nullptr.Ensure that the input parameter is correct.
napi_call_functionCalls an ArkTS function in a native method, that is, native calls ArkTS.napi_function_expectedThe input parameter func is not of the ArkTS function type.Ensure that the input parameter is correct.
napi_call_functionCalls an ArkTS function in a native method, that is, native calls ArkTS.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_create_functionCreates a native method for ArkTS to call.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_functionCreates a native method for ArkTS to call.napi_invalid_argThe input parameter cb is nullptr.Ensure that the input parameter is correct.
napi_create_functionCreates a native method for ArkTS to call.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_functionCreates a native method for ArkTS to call.napi_invalid_argFailed to create a C++ object.The memory is insufficient. Check whether C++ memory leaks.
napi_create_functionCreates a native method for ArkTS to call.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_get_cb_infoObtains detailed information about the call, such as the parameters and this pointer, from the given callback information.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_cb_infoObtains detailed information about the call, such as the parameters and this pointer, from the given callback information.napi_invalid_argThe input parameter cbinfo is nullptr.Ensure that the input parameter is correct.
napi_get_new_targetObtains the new.target of the constructor call.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_new_targetObtains the new.target of the constructor call.napi_invalid_argThe input parameter cbinfo is nullptr.Ensure that the input parameter is correct.
napi_get_new_targetObtains the new.target of the constructor call.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_get_new_targetObtains the new.target of the constructor call.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_new_instanceCreates an instance based on the given constructor.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_new_instanceCreates an instance based on the given constructor.napi_invalid_argThe input parameter constructor is nullptr.Ensure that the input parameter is correct.
napi_new_instanceCreates an instance based on the given constructor.napi_invalid_argThe input parameter argc is greater than 0 and argv is nullptr.Ensure that the input parameter is correct.
napi_new_instanceCreates an instance based on the given constructor.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_new_instanceCreates an instance based on the given constructor.napi_function_expectedThe input parameter constructor is not of the ArkTS function type.Ensure that the input parameter is correct.
napi_new_instanceCreates an instance based on the given constructor.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_define_classDefines a JS class corresponding to the C++ class.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_define_classDefines a JS class corresponding to the C++ class.napi_invalid_argThe input parameter utf8name is nullptr.Ensure that the input parameter is correct.
napi_define_classDefines a JS class corresponding to the C++ class.napi_invalid_argThe input parameter constructor is nullptr.Ensure that the input parameter is correct.
napi_define_classDefines a JS class corresponding to the C++ class.napi_invalid_argThe input parameter property_count is greater than 0 and properties is nullptr.Ensure that the input parameter is correct.
napi_define_classDefines a JS class corresponding to the C++ class.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_define_classDefines a JS class corresponding to the C++ class.napi_object_expectedThe input parameter length is not NAPI_AUTO_LENGTH, but exceeds INT_MAX.Ensure that the input parameter is correct.
napi_define_classDefines a JS class corresponding to the C++ class.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_wrapWraps a native instance in an ArkTS object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_wrapWraps a native instance in an ArkTS object.napi_invalid_argThe input parameter js_object is nullptr.Ensure that the input parameter is correct.
napi_wrapWraps a native instance in an ArkTS object.napi_invalid_argThe input parameter native_object is nullptr.Ensure that the input parameter is correct.
napi_wrapWraps a native instance in an ArkTS object.napi_invalid_argThe input parameter finalize_cb is nullptr.Ensure that the input parameter is correct.
napi_wrapWraps a native instance in an ArkTS object.napi_object_expectedThe input parameter js_object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_wrapWraps a native instance in an ArkTS object.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_unwrapUnwraps the native instance from an ArkTS object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_unwrapUnwraps the native instance from an ArkTS object.napi_invalid_argThe input parameter js_object is nullptr.Ensure that the input parameter is correct.
napi_unwrapUnwraps the native instance from an ArkTS object.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_unwrapUnwraps the native instance from an ArkTS object.napi_object_expectedThe input parameter js_object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_unwrapUnwraps the native instance from an ArkTS object.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_remove_wrapRemoves the native instance from the ArkTS object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_remove_wrapRemoves the native instance from the ArkTS object.napi_invalid_argThe input parameter js_object is nullptr.Ensure that the input parameter is correct.
napi_remove_wrapRemoves the native instance from the ArkTS object.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_remove_wrapRemoves the native instance from the ArkTS object.napi_object_expectedThe input parameter js_object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_remove_wrapRemoves the native instance from the ArkTS object.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_create_async_workCreates a work object that executes logic asynchronously.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_async_workCreates a work object that executes logic asynchronously.napi_invalid_argThe input parameter async_resource_name is nullptr.Ensure that the input parameter is correct.
napi_create_async_workCreates a work object that executes logic asynchronously.napi_invalid_argThe input parameter execute is nullptr.Ensure that the input parameter is correct.
napi_create_async_workCreates a work object that executes logic asynchronously.napi_invalid_argThe input parameter complete is nullptr.Ensure that the input parameter is correct.
napi_create_async_workCreates a work object that executes logic asynchronously.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_delete_async_workReleases an async work object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_delete_async_workReleases an async work object.napi_invalid_argThe input parameter work is nullptr.Ensure that the input parameter is correct.
napi_queue_async_workAdds an async work object to the queue so that it can be scheduled for execution.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_queue_async_workAdds an async work object to the queue so that it can be scheduled for execution.napi_invalid_argThe input parameter work is nullptr.Ensure that the input parameter is correct.
napi_cancel_async_workCancels a queued async work if it has not been started.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_cancel_async_workCancels a queued async work if it has not been started.napi_invalid_argThe input parameter work is nullptr.Ensure that the input parameter is correct.
napi_async_initCreates an asynchronous context. The functionalities related to async_hook are not supported.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_async_initCreates an asynchronous context. The functionalities related to async_hook are not supported.napi_invalid_argThe input parameter async_resource_name is nullptr.Ensure that the input parameter is correct.
napi_async_initCreates an asynchronous context. The functionalities related to async_hook are not supported.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_make_callbackAllows an ArkTS function to be called in the asynchronous context. The functionalities related to async_hook are not supported.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_make_callbackAllows an ArkTS function to be called in the asynchronous context. The functionalities related to async_hook are not supported.napi_invalid_argThe input parameter func is nullptr.Ensure that the input parameter is correct.
napi_make_callbackAllows an ArkTS function to be called in the asynchronous context. The functionalities related to async_hook are not supported.napi_invalid_argThe input parameter recv is nullptr.Ensure that the input parameter is correct.
napi_make_callbackAllows an ArkTS function to be called in the asynchronous context. The functionalities related to async_hook are not supported.napi_invalid_argThe input parameter argc is greater than 0 and argv is nullptr.Ensure that the input parameter is correct.
napi_make_callbackAllows an ArkTS function to be called in the asynchronous context. The functionalities related to async_hook are not supported.napi_object_expectedThe input parameter recv is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_make_callbackAllows an ArkTS function to be called in the asynchronous context. The functionalities related to async_hook are not supported.napi_function_expectedThe input parameter func is not of the ArkTS function type.Ensure that the input parameter is correct.
napi_make_callbackAllows an ArkTS function to be called in the asynchronous context. The functionalities related to async_hook are not supported.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_async_destroyDestroys the previously created asynchronous context. The functionalities related to async_hook are not supported.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_async_destroyDestroys the previously created asynchronous context. The functionalities related to async_hook are not supported.napi_invalid_argThe input parameter async_context is nullptr.Ensure that the input parameter is correct.
napi_open_callback_scopeOpens a callback scope. The functionalities related to async_hook are not supported.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_open_callback_scopeOpens a callback scope. The functionalities related to async_hook are not supported.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_close_callback_scopeCloses the callback scope. The functionalities related to async_hook are not supported.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_close_callback_scopeCloses the callback scope. The functionalities related to async_hook are not supported.napi_invalid_argThe input parameter scope is nullptr.Ensure that the input parameter is correct.
napi_close_callback_scopeCloses the callback scope. The functionalities related to async_hook are not supported.napi_invalid_argFailed to create a C++ object.The memory is insufficient. Check whether C++ memory leaks.
napi_close_callback_scopeCloses the callback scope. The functionalities related to async_hook are not supported.napi_callback_scope_mismatchnapi_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_versionObtains the current Node-API version.N/AN/AN/A
napi_get_versionObtains the latest Node-API version supported when the Node.js runtime.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_versionObtains the latest Node-API version supported when the Node.js runtime.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_promiseCreates a deferred object and an ArkTS promise.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_promiseCreates a deferred object and an ArkTS promise.napi_invalid_argThe input parameter deferred is nullptr.Ensure that the input parameter is correct.
napi_create_promiseCreates a deferred object and an ArkTS promise.napi_invalid_argThe input parameter promise is nullptr.Ensure that the input parameter is correct.
napi_create_promiseCreates a deferred object and an ArkTS promise.napi_pending_exceptionAn uncaught ArkTS exception occurs before the API is called.Handle the exception based on the exception information (HiLog/crash stack).
napi_resolve_deferredResolves a deferred object that is associated with an ArkTS promise.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_resolve_deferredResolves a deferred object that is associated with an ArkTS promise.napi_invalid_argThe input parameter deferred is nullptr.Ensure that the input parameter is correct.
napi_resolve_deferredResolves a deferred object that is associated with an ArkTS promise.napi_invalid_argThe input parameter resolution is nullptr.Ensure that the input parameter is correct.
napi_resolve_deferredResolves a deferred object that is associated with an ArkTS promise.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_reject_deferredRejects a deferred object that is associated with an ArkTS promise.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_reject_deferredRejects a deferred object that is associated with an ArkTS promise.napi_invalid_argThe input parameter deferred is nullptr.Ensure that the input parameter is correct.
napi_reject_deferredRejects a deferred object that is associated with an ArkTS promise.napi_invalid_argThe input parameter rejection is nullptr.Ensure that the input parameter is correct.
napi_reject_deferredRejects a deferred object that is associated with an ArkTS promise.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_is_promiseChecks whether the given ArkTS value is a promise object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_is_promiseChecks whether the given ArkTS value is a promise object.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_is_promiseChecks whether the given ArkTS value is a promise object.napi_invalid_argThe input parameter is_promise is nullptr.Ensure that the input parameter is correct.
napi_get_uv_event_loopObtains the current libuv loop instance.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_uv_event_loopObtains the current libuv loop instance.napi_invalid_argThe input parameter loop is nullptr.Ensure that the input parameter is correct.
napi_get_uv_event_loopObtains the current libuv loop instance.napi_generic_failureThe input parameter env has been destroyed.Ensure that the input parameter is correct.
napi_create_threadsafe_functionCreates a thread-safe function.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_threadsafe_functionCreates a thread-safe function.napi_invalid_argThe input parameter async_resource_name is nullptr.Ensure that the input parameter is correct.
napi_create_threadsafe_functionCreates a thread-safe function.napi_invalid_argThe value of the input parameter initial_thread_count is 0 or greater than 128.Ensure that the input parameter is correct.
napi_create_threadsafe_functionCreates a thread-safe function.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_threadsafe_functionCreates a thread-safe function.napi_invalid_argBoth func and call_js_cb are nullptr.Ensure that the input parameter is correct.
napi_create_threadsafe_functionCreates a thread-safe function.napi_invalid_argFailed to create a C++ object.The memory is insufficient. Check whether C++ memory leaks.
napi_create_threadsafe_functionCreates a thread-safe function.napi_generic_failureuv_loop_t is nullptr.NA
napi_create_threadsafe_functionCreates a thread-safe function.napi_generic_failureuv_async_init failed.NA
napi_get_threadsafe_function_contextObtains the context of a thread-safe function.napi_invalid_argThe input parameter func is nullptr.Ensure that the input parameter is correct.
napi_get_threadsafe_function_contextObtains the context of a thread-safe function.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_call_threadsafe_functionCalls a thread-safe function.napi_invalid_argThe input parameter func is nullptr.Ensure that the input parameter is correct.
napi_call_threadsafe_functionCalls a thread-safe function.napi_invalid_argthreadsafe_function is disabled.Do not call this API after napi_release_threadsafe_function disables func.
napi_call_threadsafe_functionCalls a thread-safe function.napi_queue_fullThe 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_functionCalls a thread-safe function.napi_closingthreadsafe_function is being disabled.Do not call this API after napi_release_threadsafe_function disables func.
napi_call_threadsafe_functionCalls a thread-safe function.napi_closingThe 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_functionCalls a thread-safe function.napi_generic_failureuv_async_send failed.NA
napi_call_threadsafe_functionCalls a thread-safe function.napi_generic_failureThe input parameter env has been destroyed.Do not use this API after the env is destroyed.
napi_acquire_threadsafe_functionAcquires a thread-safe function.napi_invalid_argThe input parameter func is nullptr.Ensure that the input parameter is correct.
napi_acquire_threadsafe_functionAcquires a thread-safe function.napi_generic_failurethreadsafe_function is being disabled/has been disabled.Do not call this API after napi_release_threadsafe_function disables func.
napi_release_threadsafe_functionReleases a thread-safe function.napi_invalid_argThe input parameter func is nullptr.Ensure that the input parameter is correct.
napi_release_threadsafe_functionReleases a thread-safe function.napi_generic_failurethreadsafe_function is being disabled/has been disabled.Do not call this API after napi_release_threadsafe_function disables func.
napi_release_threadsafe_functionReleases a thread-safe function.napi_generic_failureWhen 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_functionReleases a thread-safe function.napi_generic_failureuv_async_send failed.NA
napi_release_threadsafe_functionReleases a thread-safe function.napi_generic_failureThe input parameter env has been destroyed.Ensure that the input parameter is correct.
napi_ref_threadsafe_functionIndicates that the event loop running on the main thread should not exit until the thread-safe function is destroyed.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_ref_threadsafe_functionIndicates that the event loop running on the main thread should not exit until the thread-safe function is destroyed.napi_invalid_argThe input parameter func is nullptr.Ensure that the input parameter is correct.
napi_ref_threadsafe_functionIndicates that the event loop running on the main thread should not exit until the thread-safe function is destroyed.napi_generic_failureenv is not in the current thread.This API can be called only from the thread to which the env belongs.
napi_unref_threadsafe_functionIndicates that the event loop running on the main thread may exit before the thread-safe function is destroyed.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_unref_threadsafe_functionIndicates that the event loop running on the main thread may exit before the thread-safe function is destroyed.napi_invalid_argThe input parameter func is nullptr.Ensure that the input parameter is correct.
napi_unref_threadsafe_functionIndicates that the event loop running on the main thread may exit before the thread-safe function is destroyed.napi_generic_failureenv is not in the current thread.This API can be called only from the thread to which the env belongs.
napi_create_dateCreates an ArkTS Date object from C double data.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_dateCreates an ArkTS Date object from C double data.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_dateCreates an ArkTS Date object from C double data.napi_pending_exceptionAn uncaught ArkTS exception occurs before the API is called.Handle the exception based on the exception information (HiLog/crash stack).
napi_get_date_valueObtains the C double equivalent of the given ArkTS Date object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_date_valueObtains the C double equivalent of the given ArkTS Date object.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_get_date_valueObtains the C double equivalent of the given ArkTS Date object.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_get_date_valueObtains the C double equivalent of the given ArkTS Date object.napi_date_expectedThe input parameter value is not of the ArkTS date type.Ensure that the input parameter is correct.
napi_get_date_valueObtains the C double equivalent of the given ArkTS Date object.napi_pending_exceptionAn uncaught ArkTS exception occurs before the API is called.Handle the exception based on the exception information (HiLog/crash stack).
napi_create_bigint_int64Creates an ArkTS BigInt from C int64 data.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_bigint_int64Creates an ArkTS BigInt from C int64 data.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_bigint_uint64Creates an ArkTS BigInt from C uint64 data.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_bigint_uint64Creates an ArkTS BigInt from C uint64 data.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_bigint_wordsCreates a single ArkTS BigInt from a C uint64 array.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_bigint_wordsCreates a single ArkTS BigInt from a C uint64 array.napi_invalid_argThe input parameter words is nullptr.Ensure that the input parameter is correct.
napi_create_bigint_wordsCreates a single ArkTS BigInt from a C uint64 array.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_bigint_wordsCreates a single ArkTS BigInt from a C uint64 array.napi_invalid_argThe input parameter word_count is greater than or equal to INT_MAX.Ensure that the input parameter is correct.
napi_create_bigint_wordsCreates a single ArkTS BigInt from a C uint64 array.napi_pending_exceptionAn uncaught ArkTS exception occurs before the API is called.Handle the exception based on the exception information (HiLog/crash stack).
napi_create_bigint_wordsCreates a single ArkTS BigInt from a C uint64 array.napi_pending_exceptionInput Parameter (word_count × 2) > (1 MB/32).Ensure that the input parameter is correct.
napi_get_value_bigint_int64Obtains the C int64 equivalent of an ArkTS BigInt.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_value_bigint_int64Obtains the C int64 equivalent of an ArkTS BigInt.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_get_value_bigint_int64Obtains the C int64 equivalent of an ArkTS BigInt.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_get_value_bigint_int64Obtains the C int64 equivalent of an ArkTS BigInt.napi_invalid_argThe input parameter lossless is nullptr.Ensure that the input parameter is correct.
napi_get_value_bigint_int64Obtains the C int64 equivalent of an ArkTS BigInt.napi_bigint_expectedThe input parameter value is not of the ArkTS BigInt type.Ensure that the input parameter is correct.
napi_get_value_bigint_uint64Obtains the C uint64 equivalent of an ArkTS BigInt.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_value_bigint_uint64Obtains the C uint64 equivalent of an ArkTS BigInt.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_get_value_bigint_uint64Obtains the C uint64 equivalent of an ArkTS BigInt.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_get_value_bigint_uint64Obtains the C uint64 equivalent of an ArkTS BigInt.napi_invalid_argThe input parameter lossless is nullptr.Ensure that the input parameter is correct.
napi_get_value_bigint_uint64Obtains the C uint64 equivalent of an ArkTS BigInt.napi_bigint_expectedThe input parameter value is not of the ArkTS BigInt type.Ensure that the input parameter is correct.
napi_get_value_bigint_wordsObtains information from the given ArkTS BigInt, including the sign bit, 64-bit little-endian array, and number of elements in the array.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_value_bigint_wordsObtains information from the given ArkTS BigInt, including the sign bit, 64-bit little-endian array, and number of elements in the array.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_get_value_bigint_wordsObtains information from the given ArkTS BigInt, including the sign bit, 64-bit little-endian array, and number of elements in the array.napi_invalid_argThe input parameter word_count is nullptr.Ensure that the input parameter is correct.
napi_get_value_bigint_wordsObtains information from the given ArkTS BigInt, including the sign bit, 64-bit little-endian array, and number of elements in the array.napi_object_expectedThe input parameter value is not of the ArkTS BigInt type.Ensure that the input parameter is correct.
napi_create_bufferCreates an ArkTS buffer of the specified size.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_bufferCreates an ArkTS buffer of the specified size.napi_invalid_argThe input parameter data is nullptr.Ensure that the input parameter is correct.
napi_create_bufferCreates an ArkTS buffer of the specified size.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_bufferCreates an ArkTS buffer of the specified size.napi_invalid_argThe input parameter size is 0 or greater than 2 MiB (2097152 bytes).Ensure that the input parameter is correct.
napi_create_bufferCreates an ArkTS buffer of the specified size.napi_pending_exceptionAn uncaught ArkTS exception occurs before the API is called.Handle the exception based on the exception information (HiLog/crash stack).
napi_create_buffer_copyCreates an ArkTS buffer of the specified size and initializes it with the given data.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_buffer_copyCreates an ArkTS buffer of the specified size and initializes it with the given data.napi_invalid_argThe input parameter data is nullptr.Ensure that the input parameter is correct.
napi_create_buffer_copyCreates an ArkTS buffer of the specified size and initializes it with the given data.napi_invalid_argThe input parameter result_data is nullptr.Ensure that the input parameter is correct.
napi_create_buffer_copyCreates an ArkTS buffer of the specified size and initializes it with the given data.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_buffer_copyCreates an ArkTS buffer of the specified size and initializes it with the given data.napi_invalid_argThe input parameter size is 0 or greater than 2 MiB (2097152 bytes).Ensure that the input parameter is correct.
napi_create_buffer_copyCreates an ArkTS buffer of the specified size and initializes it with the given data.napi_pending_exceptionAn uncaught ArkTS exception occurs before the API is called.Handle the exception based on the exception information (HiLog/crash stack).
napi_create_external_bufferCreates an ArkTS buffer of the specified size, and initializes it with the given data. The buffer created can include extra data.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_external_bufferCreates an ArkTS buffer of the specified size, and initializes it with the given data. The buffer created can include extra data.napi_invalid_argThe input parameter data is nullptr.Ensure that the input parameter is correct.
napi_create_external_bufferCreates an ArkTS buffer of the specified size, and initializes it with the given data. The buffer created can include extra data.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_external_bufferCreates an ArkTS buffer of the specified size, and initializes it with the given data. The buffer created can include extra data.napi_invalid_argThe input parameter size is 0 or greater than 2 MiB (2097152 bytes).Ensure that the input parameter is correct.
napi_create_external_bufferCreates an ArkTS buffer of the specified size, and initializes it with the given data. The buffer created can include extra data.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_get_buffer_infoObtains the underlying data of an ArkTS buffer and its length.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_buffer_infoObtains the underlying data of an ArkTS buffer and its length.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_get_buffer_infoObtains the underlying data of an ArkTS buffer and its length.napi_arraybuffer_expectedThe input parameter value is not of the ArkTS ArrayBuffer type.Ensure that the input parameter is correct.
napi_is_bufferChecks whether the given ArkTS value is a Buffer object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_is_bufferChecks whether the given ArkTS value is a Buffer object.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_is_bufferChecks whether the given ArkTS value is a Buffer object.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_object_freezeFreezes an object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_object_freezeFreezes an object.napi_invalid_argThe input parameter object is nullptr.Ensure that the input parameter is correct.
napi_object_freezeFreezes an object.napi_object_expectedThe input parameter object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_object_freezeFreezes an object.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_object_sealSeals an object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_object_sealSeals an object.napi_invalid_argThe input parameter object is nullptr.Ensure that the input parameter is correct.
napi_object_sealSeals an object.napi_object_expectedThe input parameter object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_object_sealSeals an object.napi_pending_exceptionAn 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_namesObtains an array containing the names of all the available properties of this object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_all_property_namesObtains an array containing the names of all the available properties of this object.napi_invalid_argThe input parameter object is nullptr.Ensure that the input parameter is correct.
napi_get_all_property_namesObtains an array containing the names of all the available properties of this object.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_get_all_property_namesObtains an array containing the names of all the available properties of this object.napi_invalid_argThe 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_namesObtains an array containing the names of all the available properties of this object.napi_invalid_argThe 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_namesObtains an array containing the names of all the available properties of this object.napi_object_expectedThe input parameter object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_get_all_property_namesObtains an array containing the names of all the available properties of this object.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_detach_arraybufferDetaches the underlying data of the given ArrayBuffer.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_detach_arraybufferDetaches the underlying data of the given ArrayBuffer.napi_invalid_argThe input parameter arraybuffer is nullptr.Ensure that the input parameter is correct.
napi_detach_arraybufferDetaches the underlying data of the given ArrayBuffer.napi_invalid_argThe 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_arraybufferDetaches the underlying data of the given ArrayBuffer.napi_invalid_argThe input parameter arraybuffer has been detached.Ensure that the arraybuffer is not detached.
napi_detach_arraybufferDetaches the underlying data of the given ArrayBuffer.napi_object_expectedThe input parameter arraybuffer is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_is_detached_arraybufferChecks whether the given ArrayBuffer has been detached.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_is_detached_arraybufferChecks whether the given ArrayBuffer has been detached.napi_invalid_argThe input parameter arraybuffer is nullptr.Ensure that the input parameter is correct.
napi_is_detached_arraybufferChecks whether the given ArrayBuffer has been detached.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_is_detached_arraybufferChecks whether the given ArrayBuffer has been detached.napi_invalid_argThe input parameter arraybuffer is not of the ArkTS ArrayBuffer type.Ensure that the input parameter is correct.
napi_run_scriptRuns 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_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_run_scriptRuns 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_argThe input parameter script is nullptr.Ensure that the input parameter is correct.
napi_run_scriptRuns 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_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_set_instance_dataAssociates data with the currently running environment.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_instance_dataRetrieves the data that was previously associated with the currently running environment.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_instance_dataRetrieves the data that was previously associated with the currently running environment.napi_invalid_argThe input parameter data is nullptr.Ensure that the input parameter is correct.
napi_add_env_cleanup_hookAdds a cleanup hook function for releasing resources when the environment exits.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_add_env_cleanup_hookAdds a cleanup hook function for releasing resources when the environment exits.napi_invalid_argThe input parameter func is nullptr.Ensure that the input parameter is correct.
napi_remove_env_cleanup_hookRemoves a cleanup hook function.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_remove_env_cleanup_hookRemoves a cleanup hook function.napi_invalid_argThe input parameter func is nullptr.Ensure that the input parameter is correct.
napi_add_async_cleanup_hookAdds an async cleanup hook function for releasing resources when the environment exits.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_add_async_cleanup_hookAdds an async cleanup hook function for releasing resources when the environment exits.napi_invalid_argThe input parameter hook is nullptr.Ensure that the input parameter is correct.
napi_remove_async_cleanup_hookRemoves an async cleanup hook function.napi_invalid_argThe input parameter remove_handle is nullptr.Ensure that the input parameter is correct.
node_api_get_module_file_nameObtains the absolute path of the module to be loaded.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
node_api_get_module_file_nameObtains the absolute path of the module to be loaded.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_add_finalizerAdds a napi_finalize callback, which will be called when the ArkTS object is garbage-collected.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_add_finalizerAdds a napi_finalize callback, which will be called when the ArkTS object is garbage-collected.napi_invalid_argThe input parameter js_object is nullptr.Ensure that the input parameter is correct.
napi_add_finalizerAdds a napi_finalize callback, which will be called when the ArkTS object is garbage-collected.napi_invalid_argThe input parameter finalize_cb is nullptr.Ensure that the input parameter is correct.
napi_add_finalizerAdds a napi_finalize callback, which will be called when the ArkTS object is garbage-collected.napi_object_expectedThe input parameter js_object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_fatal_exceptionThrows an UncaughtException to ArkTS.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_fatal_exceptionThrows an UncaughtException to ArkTS.napi_invalid_argThe input parameter err is nullptr.Ensure that the input parameter is correct.
napi_fatal_exceptionThrows an UncaughtException to ArkTS.napi_invalid_argThe input parameter error is not of the ArkTS Error type.Ensure that the input parameter is correct.
napi_fatal_exceptionThrows an UncaughtException to ArkTS.napi_pending_exceptionAn 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_qosAdds an async work object to the queue and schedules it based on the QoS passed in.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_queue_async_work_with_qosAdds an async work object to the queue and schedules it based on the QoS passed in.napi_invalid_argThe input parameter work is nullptr.Ensure that the input parameter is correct.
napi_run_script_pathRuns an .abc file.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_run_script_pathRuns an .abc file.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_run_script_pathRuns an .abc file.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_load_moduleLoads an .abc file as a module. This API returns the namespace of the module.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_load_moduleLoads an .abc file as a module. This API returns the namespace of the module.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_load_moduleLoads an .abc file as a module. This API returns the namespace of the module.napi_pending_exceptionAn 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_propertiesCreates 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_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_object_with_propertiesCreates 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_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_object_with_named_propertiesCreates 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_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_object_with_named_propertiesCreates 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_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_coerce_to_native_binding_objectForcibly binds an ArkTS object and a native object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_coerce_to_native_binding_objectForcibly binds an ArkTS object and a native object.napi_invalid_argThe input parameter js_object is nullptr.Ensure that the input parameter is correct.
napi_coerce_to_native_binding_objectForcibly binds an ArkTS object and a native object.napi_invalid_argThe input parameter detach_cb is nullptr.Ensure that the input parameter is correct.
napi_coerce_to_native_binding_objectForcibly binds an ArkTS object and a native object.napi_invalid_argThe input parameter attach_cb is nullptr.Ensure that the input parameter is correct.
napi_coerce_to_native_binding_objectForcibly binds an ArkTS object and a native object.napi_invalid_argThe input parameter native_object is nullptr.Ensure that the input parameter is correct.
napi_coerce_to_native_binding_objectForcibly binds an ArkTS object and a native object.napi_invalid_argFailed to create a C++ object.The memory is insufficient. Check whether C++ memory leaks.
napi_coerce_to_native_binding_objectForcibly binds an ArkTS object and a native object.napi_object_expectedjs_object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_coerce_to_native_binding_objectForcibly binds an ArkTS object and a native object.napi_generic_failureAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_create_ark_runtimeCreates an ArkTS runtime environment.napi_invalid_argg_createNapiEnvCallback is nullptr.NA
napi_create_ark_runtimeCreates an ArkTS runtime environment.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_ark_runtimeCreates an ArkTS runtime environment.napi_create_ark_runtime_only_one_env_per_threadThe env has been created for the current thread.Avoid repeated creation.
napi_create_ark_runtimeCreates an ArkTS runtime environment.napi_create_ark_runtime_too_many_envsArkRuntime 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_runtimeCreates an ArkTS runtime environment.napi_generic_failureFailed to create ark_runtime.Identify the causes based on the HiLog information.
napi_destroy_ark_runtimeDestroys an ArkTS runtime environment.napi_invalid_argg_createNapiEnvCallback is nullptr.NA
napi_destroy_ark_runtimeDestroys an ArkTS runtime environment.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_destroy_ark_runtimeDestroys an ArkTS runtime environment.napi_destroy_ark_runtime_env_not_existThe env is not created.Use this API with the create API.
napi_run_event_loopRuns an underlying event loop.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_run_event_loopRuns an underlying event loop.napi_invalid_argThe input parameter mode is not of the napi_event_mode type.Ensure that the input parameter is correct.
napi_run_event_loopRuns an underlying event loop.napi_invalid_argThe loop of env is nullptr.Ensure that the input parameter is correct.
napi_run_event_loopRuns an underlying event loop.napi_generic_failureThe current thread is not a native thread.Use the env created by napi_create_ark_runtime.
napi_stop_event_loopStops an underlying event loop.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_stop_event_loopStops an underlying event loop.napi_invalid_argThe loop of env is nullptr.Ensure that the input parameter is correct.
napi_stop_event_loopStops an underlying event loop.napi_generic_failureThe current thread is not a native thread.Use the env created by napi_create_ark_runtime.
napi_load_module_with_infoLoads 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_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_load_module_with_infoLoads 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_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_load_module_with_infoLoads 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_failureFailed to load the module.Identify the causes based on the HiLog information.
napi_load_module_with_infoLoads 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_exceptionAn uncaught ArkTS exception occurs before the API is called.Handle the exception based on the exception information (HiLog/crash stack).
napi_serializeConverts an ArkTS object into native data.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_serializeConverts an ArkTS object into native data.napi_invalid_argThe input parameter object is nullptr.Ensure that the input parameter is correct.
napi_serializeConverts an ArkTS object into native data.napi_invalid_argThe input parameter transfer_list is nullptr.Ensure that the input parameter is correct.
napi_serializeConverts an ArkTS object into native data.napi_invalid_argThe input parameter clone_list is nullptr.Ensure that the input parameter is correct.
napi_serializeConverts an ArkTS object into native data.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_serializeConverts an ArkTS object into native data.napi_invalid_argThe input parameter transfer_list is neither undefined nor an ArkTS array.Ensure that the input parameter is correct.
napi_serializeConverts an ArkTS object into native data.napi_invalid_argThe input parameter clone_list is neither undefined nor an ArkTS array.Ensure that the input parameter is correct.
napi_deserializeConverts native data into an ArkTS object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_deserializeConverts native data into an ArkTS object.napi_invalid_argThe input parameter buffer is nullptr.Ensure that the input parameter is correct.
napi_deserializeConverts native data into an ArkTS object.napi_invalid_argThe input parameter object is nullptr.Ensure that the input parameter is correct.
napi_delete_serialization_dataDeletes serialized data.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_delete_serialization_dataDeletes serialized data.napi_invalid_argThe input parameter buffer is nullptr.Ensure that the input parameter is correct.
napi_call_threadsafe_function_with_priorityCalls a task with the specified priority and enqueuing mode into the ArkTS main thread.napi_invalid_argThe input parameter func is nullptr.Ensure that the input parameter is correct.
napi_call_threadsafe_function_with_priorityCalls a task with the specified priority and enqueuing mode into the ArkTS main thread.napi_invalid_argThe input parameter priority is not of the napi_task_priority type.Ensure that the input parameter is correct.
napi_call_threadsafe_function_with_priorityCalls a task with the specified priority and enqueuing mode into the ArkTS main thread.napi_generic_failureThe input parameter func is invalid.Identify the causes based on the HiLog information.
napi_call_threadsafe_function_with_priorityCalls a task with the specified priority and enqueuing mode into the ArkTS main thread.napi_generic_failureEventHandler is not supported or fails to be executed.Identify the causes based on the HiLog information.
napi_is_sendableChecks whether an ArkTS value is sendable.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_is_sendableChecks whether an ArkTS value is sendable.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_is_sendableChecks whether an ArkTS value is sendable.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_define_sendable_classCreates a sendable class.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_define_sendable_classCreates a sendable class.napi_invalid_argThe input parameter utf8name is nullptr.Ensure that the input parameter is correct.
napi_define_sendable_classCreates a sendable class.napi_invalid_argThe input parameter constructor is nullptr.Ensure that the input parameter is correct.
napi_define_sendable_classCreates a sendable class.napi_invalid_argThe input parameter property_count is greater than 0 and properties is nullptr.Ensure that the input parameter is correct.
napi_define_sendable_classCreates a sendable class.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_define_sendable_classCreates a sendable class.napi_object_expectedThe input parameter length is not NAPI_AUTO_LENGTH, but exceeds INT_MAX.Ensure that the input parameter is correct.
napi_define_sendable_classCreates a sendable class.napi_pending_exceptionAn 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_propertiesCreates a sendable object with the given napi_property_descriptor.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_sendable_object_with_propertiesCreates a sendable object with the given napi_property_descriptor.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_sendable_arrayCreates a sendable array.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_sendable_arrayCreates a sendable array.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_sendable_array_with_lengthCreates a sendable array of the specified length.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_sendable_array_with_lengthCreates a sendable array of the specified length.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_sendable_arraybufferCreates a sendable ArrayBuffer.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_sendable_arraybufferCreates a sendable ArrayBuffer.napi_invalid_argThe input parameter data is nullptr.Ensure that the input parameter is correct.
napi_create_sendable_arraybufferCreates a sendable ArrayBuffer.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_sendable_arraybufferCreates a sendable ArrayBuffer.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_create_sendable_typedarrayCreates a sendable TypedArray.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_sendable_typedarrayCreates a sendable TypedArray.napi_invalid_argThe input parameter arraybuffer is nullptr.Ensure that the input parameter is correct.
napi_create_sendable_typedarrayCreates a sendable TypedArray.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_sendable_typedarrayCreates a sendable TypedArray.napi_invalid_argThe input parameter type is not napi_typedarray_type.Ensure that the input parameter is correct.
napi_create_sendable_typedarrayCreates a sendable TypedArray.napi_object_expectedThe input parameter arraybuffer is not of the SharedArrayBuffer type.Ensure that the input parameter is correct.
napi_create_sendable_typedarrayCreates a sendable TypedArray.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_wrap_sendableWraps a native instance into an ArkTS object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_wrap_sendableWraps a native instance into an ArkTS object.napi_invalid_argThe input parameter js_object is nullptr.Ensure that the input parameter is correct.
napi_wrap_sendableWraps a native instance into an ArkTS object.napi_invalid_argThe input parameter native_object is nullptr.Ensure that the input parameter is correct.
napi_wrap_sendableWraps a native instance into an ArkTS object.napi_object_expectedThe input parameter js_object is not of the SendableObject type.Ensure that the input parameter is correct.
napi_wrap_sendableWraps a native instance into an ArkTS object.napi_pending_exceptionAn 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_sizeWraps a native instance of the specified size into an ArkTS object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_wrap_sendable_with_sizeWraps a native instance of the specified size into an ArkTS object.napi_invalid_argThe input parameter js_object is nullptr.Ensure that the input parameter is correct.
napi_wrap_sendable_with_sizeWraps a native instance of the specified size into an ArkTS object.napi_invalid_argThe input parameter native_object is nullptr.Ensure that the input parameter is correct.
napi_wrap_sendable_with_sizeWraps a native instance of the specified size into an ArkTS object.napi_object_expectedThe input parameter js_object is not of the SendableObject type.Ensure that the input parameter is correct.
napi_wrap_sendable_with_sizeWraps a native instance of the specified size into an ArkTS object.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_unwrap_sendableUnwraps the native instance from an ArkTS object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_unwrap_sendableUnwraps the native instance from an ArkTS object.napi_invalid_argThe input parameter js_object is nullptr.Ensure that the input parameter is correct.
napi_unwrap_sendableUnwraps the native instance from an ArkTS object.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_unwrap_sendableUnwraps the native instance from an ArkTS object.napi_object_expectedThe input parameter js_object is not of the SendableObject type.Ensure that the input parameter is correct.
napi_unwrap_sendableUnwraps the native instance from an ArkTS object.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_remove_wrap_sendableRemoves the native instance from an ArkTS object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_remove_wrap_sendableRemoves the native instance from an ArkTS object.napi_invalid_argThe input parameter js_object is nullptr.Ensure that the input parameter is correct.
napi_remove_wrap_sendableRemoves the native instance from an ArkTS object.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_remove_wrap_sendableRemoves the native instance from an ArkTS object.napi_object_expectedThe input parameter js_object is not of the SendableObject type.Ensure that the input parameter is correct.
napi_remove_wrap_sendableRemoves the native instance from an ArkTS object.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_wrap_enhanceWraps 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_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_wrap_enhanceWraps 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_argThe input parameter js_object is nullptr.Ensure that the input parameter is correct.
napi_wrap_enhanceWraps 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_argThe input parameter native_object is nullptr.Ensure that the input parameter is correct.
napi_wrap_enhanceWraps 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_expectedThe input parameter js_object is not of the ArkTS object type.Ensure that the input parameter is correct.
napi_wrap_enhanceWraps 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_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_create_ark_contextCreates a new runtime context environment.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_ark_contextCreates a new runtime context environment.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_switch_ark_contextSwitches to the specified runtime context environment.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_switch_ark_contextSwitches to the specified runtime context environment.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_destroy_ark_contextDestroys a context environment created by napi_create_ark_context.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_destroy_ark_contextDestroys a context environment created by napi_create_ark_context.napi_pending_exceptionAn uncaught ArkTS exception occurs before or during the API call.Handle the exception based on the exception information (HiLog/crash stack).
napi_open_critical_scopeOpens a critical scope.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_open_critical_scopeOpens a critical scope.napi_invalid_argThe input parameter scope is nullptr.Ensure that the input parameter is correct.
napi_close_critical_scopeCloses a critical scope.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_close_critical_scopeCloses a critical scope.napi_invalid_argThe input parameter scope is nullptr.Ensure that the input parameter is correct.
napi_get_buffer_string_utf16_in_critical_scopeObtains the UTF-16 encoding memory buffer data of an ArkTS string.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_buffer_string_utf16_in_critical_scopeObtains the UTF-16 encoding memory buffer data of an ArkTS string.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_get_buffer_string_utf16_in_critical_scopeObtains the UTF-16 encoding memory buffer data of an ArkTS string.napi_invalid_argThe input parameter buffer is nullptr.Ensure that the input parameter is correct.
napi_get_buffer_string_utf16_in_critical_scopeObtains the UTF-16 encoding memory buffer data of an ArkTS string.napi_invalid_argThe input parameter length is nullptr.Ensure that the input parameter is correct.
napi_create_strong_referenceCreates a strong reference to an ArkTS object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_strong_referenceCreates a strong reference to an ArkTS object.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_create_strong_referenceCreates a strong reference to an ArkTS object.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_delete_strong_referenceDeletes a strong reference.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_delete_strong_referenceDeletes a strong reference.napi_invalid_argThe input parameter ref is nullptr.Ensure that the input parameter is correct.
napi_get_strong_reference_valueObtains the ArkTS object value associated with a strong reference object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_strong_reference_valueObtains the ArkTS object value associated with a strong reference object.napi_invalid_argThe input parameter ref is nullptr.Ensure that the input parameter is correct.
napi_get_strong_reference_valueObtains the ArkTS object value associated with a strong reference object.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_external_string_utf16Creates an ArkTS string from an external UTF-16 encoded string buffer, without performing memory copy operations.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_external_string_utf16Creates an ArkTS string from an external UTF-16 encoded string buffer, without performing memory copy operations.napi_invalid_argThe input parameter str is nullptr.Ensure that the input parameter is correct.
napi_create_external_string_utf16Creates an ArkTS string from an external UTF-16 encoded string buffer, without performing memory copy operations.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_external_string_utf16Creates an ArkTS string from an external UTF-16 encoded string buffer, without performing memory copy operations.napi_invalid_argThe 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_asciiCreates an ArkTS string from an external ASCII encoded string buffer, without performing memory copy operations.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_external_string_asciiCreates an ArkTS string from an external ASCII encoded string buffer, without performing memory copy operations.napi_invalid_argThe input parameter str is nullptr.Ensure that the input parameter is correct.
napi_create_external_string_asciiCreates an ArkTS string from an external ASCII encoded string buffer, without performing memory copy operations.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_external_string_asciiCreates an ArkTS string from an external ASCII encoded string buffer, without performing memory copy operations.napi_invalid_argThe 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_referenceCreates a Sendable strong reference to a Sendable ArkTS object.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_create_strong_sendable_referenceCreates a Sendable strong reference to a Sendable ArkTS object.napi_invalid_argThe input parameter value is nullptr.Ensure that the input parameter is correct.
napi_create_strong_sendable_referenceCreates a Sendable strong reference to a Sendable ArkTS object.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_create_strong_sendable_referenceCreates a Sendable strong reference to a Sendable ArkTS object.napi_invalid_argThe input parameter env is not the main context.Ensure that the input parameter is correct.
napi_create_strong_sendable_referenceCreates a Sendable strong reference to a Sendable ArkTS object.napi_object_expectedThe input parameter value is not sendable.Ensure that the input parameter is correct.
napi_delete_strong_sendable_referenceDeletes a Sendable strong reference.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_delete_strong_sendable_referenceDeletes a Sendable strong reference.napi_invalid_argThe input parameter ref is nullptr.Ensure that the input parameter is correct.
napi_delete_strong_sendable_referenceDeletes a Sendable strong reference.napi_invalid_argThe input parameter env is not the main context.Ensure that the input parameter is correct.
napi_delete_strong_sendable_referenceDeletes a Sendable strong reference.napi_generic_failureThe napi_value obtained from napi_sendable_ref is not sendable.Ensure that the input parameter is correct.
napi_get_strong_sendable_reference_valueObtains the ArkTS object value associated with a Sendable strong reference.napi_invalid_argThe input parameter env is nullptr.Ensure that the input parameter is correct.
napi_get_strong_sendable_reference_valueObtains the ArkTS object value associated with a Sendable strong reference.napi_invalid_argThe input parameter ref is nullptr.Ensure that the input parameter is correct.
napi_get_strong_sendable_reference_valueObtains the ArkTS object value associated with a Sendable strong reference.napi_invalid_argThe input parameter result is nullptr.Ensure that the input parameter is correct.
napi_get_strong_sendable_reference_valueObtains the ArkTS object value associated with a Sendable strong reference.napi_invalid_argThe input parameter env is not the main context.Ensure that the input parameter is correct.
napi_get_strong_sendable_reference_valueObtains the ArkTS object value associated with a Sendable strong reference.napi_generic_failureThe napi_value obtained from napi_sendable_ref is not sendable.Ensure that the input parameter is correct.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 use-napi-ark-runtime

openharmony 鸿蒙 use-napi-about-arraybuffer

openharmony 鸿蒙 use-jsvm-about-array

openharmony 鸿蒙 use-napi-load-module

openharmony 鸿蒙 jsvm-data-types-interfaces

openharmony 鸿蒙 ohos-abi

openharmony 鸿蒙 jsvm-guidelines

openharmony 鸿蒙 use-jsvm-trigger-gc

openharmony 鸿蒙 use-sendable-napi

openharmony 鸿蒙 use-napi-object-wrap

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/rEOOQAJu