Lines Matching defs:callback
119 // Save the following parameters to ensure that they can still obtained if callback clears the callbackInfo.
132 napi_value callback = Helper::NapiHelper::GetReferenceValue(env, callbackInfo->callback_);
140 napi_call_function(env, undefinedValue, callback,
157 // callback maybe contain ClearTimer, so we need check to avoid use-after-free and double-free of callbackInfo
186 // 2. get callback args
187 size_t callbackArgc = argc >= 2 ? argc - 2 : 0; // 2 include callback and timeout
193 Helper::NapiHelper::CreateReference(env, argv[idx + 2], 1); // 2 include callback and timeout
196 // 3. generate time callback id
197 // 4. generate time callback info
198 // 5. push callback info into timerTable
236 napi_throw_error(env, nullptr, "StartTimeoutOrInterval, callback info is nullptr.");
244 HILOG_ERROR("Set callback timer failed with invalid parameter.");
278 // callback maybe contain ClearTimer, so we need check to avoid use-after-free and double-free of callbackInfo