Searched refs:js_cb_ref (Results 1 – 3 of 3) sorted by relevance
/third_party/node/test/js-native-api/test_instance_data/ |
D | test_instance_data.c | 9 napi_ref js_cb_ref; member 27 if (data->js_cb_ref != NULL) { in DeleteAddonData() 28 NAPI_CALL_RETURN_VOID(env, napi_delete_reference(env, data->js_cb_ref)); in DeleteAddonData() 50 napi_get_reference_value(env, data->js_cb_ref, &js_cb)); in TestFinalizer() 54 NAPI_CALL_RETURN_VOID(env, napi_delete_reference(env, data->js_cb_ref)); in TestFinalizer() 55 data->js_cb_ref = NULL; in TestFinalizer() 64 NAPI_ASSERT(env, data->js_cb_ref == NULL, "reference must be NULL"); in ObjectWithFinalizer() 69 NAPI_CALL(env, napi_create_reference(env, js_cb, 1, &data->js_cb_ref)); in ObjectWithFinalizer() 79 data->js_cb_ref = NULL; in Init()
|
/third_party/node/test/node-api/test_instance_data/ |
D | test_instance_data.c | 7 napi_ref js_cb_ref; member 24 optional_ref = &data->js_cb_ref; in call_cb_and_delete_ref() 57 data->js_cb_ref == NULL, in establish_callback_ref() 64 napi_create_reference(env, js_cb, 1, &data->js_cb_ref), in establish_callback_ref() 168 NAPI_ASSERT(env, data->js_cb_ref == NULL, "reference must be NULL"); in TestThreadsafeFunction() 172 NAPI_CALL(env, napi_create_reference(env, argv[0], 1, &data->js_cb_ref)); in TestThreadsafeFunction() 203 if (data->js_cb_ref) { in DeleteAddonData() 204 NAPI_CALL_RETURN_VOID(env, napi_delete_reference(env, data->js_cb_ref)); in DeleteAddonData() 216 data->js_cb_ref = NULL; in Init()
|
/third_party/node/test/js-native-api/test_general/ |
D | test_general.c | 230 napi_ref js_cb_ref = data; in finalizer_only_callback() local 232 NAPI_CALL_RETURN_VOID(env, napi_get_reference_value(env, js_cb_ref, &js_cb)); in finalizer_only_callback() 236 NAPI_CALL_RETURN_VOID(env, napi_delete_reference(env, js_cb_ref)); in finalizer_only_callback() 242 napi_ref js_cb_ref; in add_finalizer_only() local 245 NAPI_CALL(env, napi_create_reference(env, argv[1], 1, &js_cb_ref)); in add_finalizer_only() 249 js_cb_ref, in add_finalizer_only()
|