update interfaces/kits/picker/include/picker_napi_utils.h.

Signed-off-by: BrainL <libuyan1@huawei.com>
This commit is contained in:
BrainL 2024-09-09 04:44:48 +00:00 committed by Gitee
parent 27accb949d
commit 015884e072
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -44,9 +44,10 @@ constexpr uint32_t NAPI_INIT_REF_COUNT = 1;
constexpr size_t NAPI_ARGC_MAX = 5;
// Error codes
const int32_t ERR_DEFAULT = 0;
const int32_t ERR_OK = 0;
const int32_t ERR_MEM_ALLOCATION = 2;
const int32_t ERR_INVALID_OUTPUT = 3;
const int32_t ERR_INV = -1;
struct JSAsyncContextOutput {
napi_value error;