0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 07:27:22 +01:00
nodejs/test/node-api
Anna Henningsen 493faf606d
n-api: keep napi_env alive while it has finalizers
Manage the napi_env refcount from Finalizer instances, as the
finalizer may refer to the napi_env until it is deleted.

Fixes: https://github.com/nodejs/node/issues/31134
Fixes: https://github.com/node-ffi-napi/node-ffi-napi/issues/48
PR-URL: https://github.com/nodejs/node/pull/31140
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2020-01-04 07:38:36 +01:00
..
1_hello_world worker: improve integration with native addons 2019-02-22 21:42:09 +01:00
test_async test: use assert() in N-API async test 2019-06-28 04:56:34 +02:00
test_buffer n-api: keep napi_env alive while it has finalizers 2020-01-04 07:38:36 +01:00
test_callback_scope
test_cleanup_hook
test_exception n-api: defer Buffer finalizer with SetImmediate 2019-06-14 13:03:12 +02:00
test_fatal
test_fatal_exception
test_general
test_instance_data n-api: add APIs for per-instance state management 2019-07-25 16:53:07 -07:00
test_make_callback n-api: mark version 5 N-APIs as stable 2019-09-05 09:16:54 -07:00
test_make_callback_recurse
test_null_init
test_policy test: cover import of a *.node file with a policy manifest 2019-05-30 15:38:54 +02:00
test_threadsafe_function n-api: make func argument of napi_create_threadsafe_function optional 2019-06-21 20:23:22 -06:00
test_uv_loop src: de-lint header usage 2019-03-12 09:57:19 -04:00
test_worker_buffer_callback src: migrate to new V8 ArrayBuffer API 2019-12-12 10:05:44 -05:00
test_worker_terminate worker: improve integration with native addons 2019-02-22 21:42:09 +01:00
.gitignore
node-api.status test: remove flaky designation for test_threadsafe_function 2019-03-04 11:09:47 -08:00
testcfg.py