Searched refs:ERR_INDEX (Results 1 – 3 of 3) sorted by relevance
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/ |
D | napi_hiappevent_write.cpp | 30 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/hiview/interfaces/js/napi/src/ |
D | hiview_napi_adapter.cpp | 25 constexpr size_t ERR_INDEX = 0; variable 66 HiviewNapiUtil::CreateUndefined(env, results[ERR_INDEX]); in FileOperationCompleteCallback() 70 HiviewNapiUtil::CreateErrorByRet(env, params->result, results[ERR_INDEX]); in FileOperationCompleteCallback() 74 napi_reject_deferred(env, params->deferred, results[ERR_INDEX]); in FileOperationCompleteCallback()
|
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/ |
D | napi_hisysevent_adapter.cpp | 30 constexpr size_t ERR_INDEX = 0; variable 159 NapiHiSysEventUtil::CreateNull(env, results[ERR_INDEX]); in Write() 165 results[ERR_INDEX] = NapiHiSysEventUtil::CreateErrorByRet(env, errorCode); in Write() 169 napi_reject_deferred(env, eventAsyncContext->deferred, results[ERR_INDEX]); in Write()
|