node/test/node-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
..
1_hello_world
test_async test: use assert() in N-API async test 2019-07-02 11:46:55 +02:00
test_async_cleanup_hook node-api: define version 8 2021-03-19 12:08:09 +00:00
test_buffer n-api: keep napi_env alive while it has finalizers 2020-02-06 02:49:20 +00:00
test_callback_scope test: add missing calls to napi_async_destroy 2020-05-13 17:53:00 +02:00
test_cleanup_hook
test_env_teardown_gc node-api: stop ref gc during environment teardown 2022-03-30 10:48:01 -04:00
test_exception
test_fatal
test_fatal_exception
test_general node-api: allow retrieval of add-on file name 2021-03-17 20:59:08 +00:00
test_instance_data n-api: define release 6 2020-04-28 16:00:37 +02:00
test_make_callback n-api: mark version 5 N-APIs as stable 2019-09-20 09:36:17 +02:00
test_make_callback_recurse
test_null_init
test_policy
test_threadsafe_function n-api: make func argument of napi_create_threadsafe_function optional 2019-07-02 09:07:45 +02:00
test_uv_loop
test_worker_buffer_callback test: fix out-of-bound reads from invalid sizeof usage 2020-05-13 17:53:00 +02:00
test_worker_terminate
test_worker_terminate_finalization n-api: revert change to finalization 2020-11-16 11:58:02 -05:00
.gitignore
node-api.status
testcfg.py