Home
last modified time | relevance | path

Searched refs:ERR_INDEX (Results 1 – 2 of 2) sorted by relevance

/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
Dnapi_hiappevent_write.cpp30 constexpr size_t ERR_INDEX = 0; variable
71 results[ERR_INDEX] = NapiUtil::CreateNull(env); in Write()
75 results[ERR_INDEX] = BuildErrorByResult(env, asyncContext->result); in Write()
77 results[ERR_INDEX] = NapiUtil::CreateObject(env, "code", in Write()
87 napi_reject_deferred(env, asyncContext->deferred, results[ERR_INDEX]); in Write()
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/
Dnapi_hisysevent_adapter.cpp24 constexpr size_t ERR_INDEX = 0; variable
48 NapiHiSysEventUtil::CreateNull(env, results[ERR_INDEX]); in Write()
54 results[ERR_INDEX] = NapiHiSysEventUtil::CreateErrorByRet(env, errorCode); in Write()
58 napi_reject_deferred(env, eventAsyncContext->deferred, results[ERR_INDEX]); in Write()