node/test/node-api/test_threadsafe_function
Gabriel Schulhof f0e6acde2d
node-api: make tsfn accept napi_finalize once more
The thread-safe function's finalizer is not called in conjunction with
the garbage collection of a JS value. In fact, it keeps a strong
reference to the JS function it is expected to call. Thus, it is safe
to make calls that affect GC state from its body.

PR-URL: https://github.com/nodejs/node/pull/51801
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2024-03-09 05:58:42 +00:00
..
binding.c
binding.gyp
test_legacy_uncaught_exception.js
test_uncaught_exception_v9.js
test_uncaught_exception.c node-api: make tsfn accept napi_finalize once more 2024-03-09 05:58:42 +00:00
test_uncaught_exception.js
test.js
uncaught_exception.js