-
Notifications
You must be signed in to change notification settings - Fork 465
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]>
Gabriel Schulhof
committed
Nov 1, 2019
1 parent
9e955a8
commit bdfd141
Showing
1 changed file
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters