Lines Matching defs:callback
82 napi_value callback = nullptr;
84 napi_get_reference_value(env, ref, &callback);
86 napi_call_function(env, undefined, callback, 0, &result, &resultOut);
166 napi_value callback = nullptr;
168 napi_get_reference_value(env, ref, &callback);
171 auto ret = napi_call_function(env, undefined, callback, 1, argv, &resultOut);
273 // on(type: 'update', callback: () => void) has 2 args
275 !CheckArgsType(env, argv[1], napi_function, "Parameter error. The type of callback must be function.")) {
304 // off(type: 'update', callback?: () => void) has at least 1 arg
312 if (!CheckArgsType(env, argv[1], napi_function, "Parameter error. The type of callback must be function.")) {
332 !CheckArgsType(env, argv[0], napi_function, "Parameter error. The type of callback must be function.")) {
360 !CheckArgsType(env, argv[0], napi_function, "Parameter error. The type of callback must be function.")) {
393 !CheckArgsType(env, argv[0], napi_function, "Parameter error. The type of callback must be function.")) {
470 !CheckArgsType(env, argv[1], napi_function, "Parameter error. The type of callback must be function.")) {
750 !CheckArgsType(env, argv[0], napi_function, "Parameter error. The type of callback must be function.")) {
1109 napi_value callback = nullptr;
1110 napi_get_reference_value(env, refKey, &callback);
1112 napi_strict_equals(env, observer, callback, &isEqual);
1151 PASTEBOARD_HILOGW(PASTEBOARD_MODULE_JS_NAPI, "expired callback");