Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src: attach data with napi_add_finalizer
Use `napi_add_finalizer()` to attach data when building against N-API 5 instead of the symbol + external approach that leaves a trace on the target object. Fixes: #557 PR-URL: #577 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
- Loading branch information