node/test/node-api
Anna Henningsen 0ec1d186f4 src: always use strong reference to napi_async_context resource
There already is an existing requirement to have matching calls of
`napi_async_init()` and `napi_async_destroy()`, so expecting users
of this API to manually hold onto the resource for the duration of
the `napi_async_context`'s lifetime is unnecessary.

Weak callbacks are generally useful for when a corresponding C++
object should be cleaned up when a JS object is gargbage-collected,
but that is not the case here.

PR-URL: https://github.com/nodejs/node/pull/59828
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2025-09-22 14:16:10 +00:00
..
1_hello_world
test_async
test_async_cleanup_hook
test_async_context src: always use strong reference to napi_async_context resource 2025-09-22 14:16:10 +00:00
test_buffer node-api: define version 10 2024-12-31 16:29:50 +00:00
test_callback_scope
test_cleanup_hook
test_env_teardown_gc
test_exception
test_fatal
test_fatal_exception
test_general
test_init_order test: fix typos 2024-09-28 13:58:55 +00:00
test_instance_data test: fix addons and node-api test assumptions 2024-10-22 07:49:19 +00:00
test_make_callback
test_make_callback_recurse
test_null_init
test_reference_by_node_api_version node-api: define version 10 2024-12-31 16:29:50 +00:00
test_threadsafe_function node-api: make tsfn accept napi_finalize once more 2024-03-09 05:58:42 +00:00
test_uv_loop
test_uv_threadpool_size test: remove unnecessary assert requiring from tests 2025-02-14 17:19:20 +00:00
test_worker_buffer_callback
test_worker_terminate
test_worker_terminate_finalization
.gitignore
node-api.status
testcfg.py