node/test/js-native-api
Chengzhong Wu bd99bf109f
node-api: allow napi_delete_reference in finalizers
`napi_delete_reference` must be called immediately for a
`napi_reference` returned from `napi_wrap` in the corresponding
finalizer, in order to clean up the `napi_reference` timely.

`napi_delete_reference` is safe to be invoked during GC.

PR-URL: https://github.com/nodejs/node/pull/55620
Reviewed-By: Gabriel Schulhof <gabrielschulhof@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Vladimir Morozov <vmorozov@microsoft.com>
2025-01-24 22:18:56 +01:00
..
2_function_arguments test: avoid copying test source files 2023-09-27 22:30:07 -04:00
3_callbacks test: avoid copying test source files 2023-09-27 22:30:07 -04:00
4_object_factory test: avoid copying test source files 2023-09-27 22:30:07 -04:00
5_function_factory test: avoid copying test source files 2023-09-27 22:30:07 -04:00
6_object_wrap node-api: allow napi_delete_reference in finalizers 2025-01-24 22:18:56 +01:00
7_factory_wrap test: merge ongc and gcutil into gc.js 2024-10-02 07:57:44 +02:00
8_passing_wrapped test: merge ongc and gcutil into gc.js 2024-10-02 07:57:44 +02:00
test_array test: avoid copying test source files 2023-09-27 22:30:07 -04:00
test_bigint test: avoid copying test source files 2023-09-27 22:30:07 -04:00
test_cannot_run_js node-api: rename nogc to basic 2024-08-19 10:32:50 +02:00
test_constructor test: avoid copying test source files 2023-09-27 22:30:07 -04:00
test_conversions test: avoid copying test source files 2023-09-27 22:30:07 -04:00
test_dataview test: avoid copying test source files 2023-09-27 22:30:07 -04:00
test_date test: avoid copying test source files 2023-09-27 22:30:07 -04:00
test_error test: avoid copying test source files 2023-09-27 22:30:07 -04:00
test_exception test: avoid copying test source files 2023-09-27 22:30:07 -04:00
test_finalizer test: merge ongc and gcutil into gc.js 2024-10-02 07:57:44 +02:00
test_function test: avoid copying test source files 2023-09-27 22:30:07 -04:00
test_general test: merge ongc and gcutil into gc.js 2024-10-02 07:57:44 +02:00
test_handle_scope test: avoid copying test source files 2023-09-27 22:30:07 -04:00
test_instance_data test: avoid copying test source files 2023-09-27 22:30:07 -04:00
test_new_target test: avoid copying test source files 2023-09-27 22:30:07 -04:00
test_number test: avoid copying test source files 2023-09-27 22:30:07 -04:00
test_object node-api: copy external type tags when they are set 2024-05-03 08:30:31 +02:00
test_promise test: avoid copying test source files 2023-09-27 22:30:07 -04:00
test_properties test: avoid copying test source files 2023-09-27 22:30:07 -04:00
test_reference test: merge ongc and gcutil into gc.js 2024-10-02 07:57:44 +02:00
test_reference_double_free test: avoid copying test source files 2023-09-27 22:30:07 -04:00
test_string node-api: add support for UTF-8 and Latin-1 property keys 2024-10-02 16:04:18 +02:00
test_symbol test: avoid copying test source files 2023-09-27 22:30:07 -04:00
test_typedarray test: avoid copying test source files 2023-09-27 22:30:07 -04:00
.gitignore Revert "test: ignore the copied entry_point.c" 2023-09-27 22:30:07 -04:00
common-inl.h test: avoid copying test source files 2023-09-27 22:30:07 -04:00
common.h node-api: rename nogc to basic 2024-08-19 10:32:50 +02:00
entry_point.h test: avoid copying test source files 2023-09-27 22:30:07 -04:00
testcfg.py test: partition N-API tests 2018-12-04 13:58:17 -08:00