node/test/js-native-api
Gabriel Schulhof a2f4206415
node-api: stop ref gc during environment teardown
A gc may happen during environment teardown. Thus, during finalization
initiated by environment teardown we must remove the V8 finalizer
before calling the Node-API finalizer.

Fixes: https://github.com/nodejs/node/issues/37236
PR-URL: https://github.com/nodejs/node/pull/37616
Backport-PR-URL: https://github.com/nodejs/node/pull/42512
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
2022-03-30 10:48:01 -04:00
..
2_function_arguments
3_callbacks
4_object_factory
5_function_factory
6_object_wrap n-api: define ECMAScript-compliant accessors on napi_define_class 2019-06-18 16:04:10 +02:00
7_factory_wrap n-api: run all finalizers via SetImmediate() 2020-09-22 19:54:24 +02:00
8_passing_wrapped n-api: run all finalizers via SetImmediate() 2020-09-22 19:54:24 +02:00
test_array
test_bigint n-api: simplify bigint-from-word creation 2020-09-22 19:54:45 +02:00
test_constructor n-api: refactor a previous commit 2019-08-02 22:23:57 +02:00
test_conversions test: add n-api null checks for conversions 2020-09-22 19:53:38 +02:00
test_dataview
test_date n-api: mark version 5 N-APIs as stable 2019-09-20 09:36:17 +02:00
test_error test: refactor common.expectsError 2020-04-01 12:58:33 -04:00
test_exception n-api: run all finalizers via SetImmediate() 2020-09-22 19:54:24 +02:00
test_function n-api: refactoring napi_create_function testing 2019-08-02 22:24:07 +02:00
test_general node-api: define version 8 2021-03-19 12:08:09 +00:00
test_handle_scope
test_instance_data n-api: define release 6 2020-04-28 16:00:37 +02:00
test_new_target
test_number n-api: add uint32 test for -1 2020-06-06 21:58:38 -07:00
test_object node-api: define version 8 2021-03-19 12:08:09 +00:00
test_promise
test_properties n-api: define ECMAScript-compliant accessors on napi_define_properties 2019-06-18 16:04:10 +02:00
test_reference n-api: run all finalizers via SetImmediate() 2020-09-22 19:54:24 +02:00
test_reference_double_free node-api: stop ref gc during environment teardown 2022-03-30 10:48:01 -04:00
test_string napi: fix memory corruption vulnerability 2020-06-02 16:00:50 +02:00
test_symbol
test_typedarray n-api: create N-API version 7 2020-09-29 00:00:06 +02:00
.gitignore
common.c n-api: refactor a previous commit 2019-08-02 22:23:57 +02:00
common.h n-api: refactor a previous commit 2019-08-02 22:23:57 +02:00
entry_point.c
testcfg.py