Searched refs:pwant (Results 1 – 1 of 1) sorted by relevance
1155 std::shared_ptr<JsWant> pwant = std::make_shared<JsWant>(); in JsGetWant() local1157 auto execute = [obj = this, want = pwant, value = errorVal, abilityType] () { in JsGetWant()1178 auto complete = [obj = this, value = errorVal, pwant] in JsGetWant()1180 if (*value == NAPI_ERR_NO_ERROR && pwant != nullptr) { in JsGetWant()1181 task.Resolve(env, obj->CreateWant(env, pwant)); in JsGetWant()1183 … auto error = (pwant == nullptr) ? static_cast<int32_t>(NAPI_ERR_ABILITY_CALL_INVALID) : *value; in JsGetWant()