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 node-api: emit uncaught-exception on unhandled tsfn callbacks 2022-05-27 13:32:08 -04:00
binding.gyp node-api: enable uncaught exceptions policy by default 2023-09-25 04:23:58 +00:00
test_legacy_uncaught_exception.js node-api: enable uncaught exceptions policy by default 2023-09-25 04:23:58 +00:00
test_uncaught_exception_v9.js node-api: enable uncaught exceptions policy by default 2023-09-25 04:23:58 +00:00
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 node-api: enable uncaught exceptions policy by default 2023-09-25 04:23:58 +00:00
test.js test: add trailing commas in test/node-api 2023-01-29 20:01:09 +01:00
uncaught_exception.js node-api: enable uncaught exceptions policy by default 2023-09-25 04:23:58 +00:00