Skip to content

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.

Merge request reports

Loading