This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse the repository at this point in the history
node-api: create reference only when needed
Optimize napi_create_external() to create the reference for calling finalizer only if user actually provides a finalizer callback. PR-URL: #44827 Reviewed-By: Luigi Pinca <email@example.com> Reviewed-By: Daeyeon Jeong <firstname.lastname@example.org> Reviewed-By: James M Snell <email@example.com>
- Loading branch information
Showing 1 changed file with 6 additions and 4 deletions.