node/test/js-native-api
Gabriel Schulhof 03806a0bb2 node-api: force env shutdown deferring behavior
The finalizer normally never gets called while a reference is strong.
However, during environment shutdown all finalizers must get called. In
order to unify the deferring behavior with that of a regular
finalization, we must force the reference to be weak when we call its
finalizer during environment shutdown.

Fixes: https://github.com/nodejs/node/issues/37236
Co-authored-by: Chengzhong Wu <legendecas@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/37303
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
2021-02-18 20:31:03 -08:00
..
2_function_arguments test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
3_callbacks test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
4_object_factory test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
5_function_factory test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
6_object_wrap test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
7_factory_wrap test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
8_passing_wrapped test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_array test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_bigint test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_constructor test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_conversions test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_dataview test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_date test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_error test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_exception test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_function test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_general test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_handle_scope test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_instance_data test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_new_target test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_number test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_object test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_promise test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_properties test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_reference test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_reference_double_free node-api: force env shutdown deferring behavior 2021-02-18 20:31:03 -08:00
test_string test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_symbol test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_typedarray test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
.gitignore
common.c test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
common.h test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
entry_point.c
testcfg.py