node-api: make reference weak parameter an indirect link to references
As the cancellation of second pass callbacks are not reachable from the current v8 API, and the second pass callbacks are scheduled with NodePlatform's task runner, we have to ensure that the weak parameter holds indirect access to the v8impl::Reference object so that the object can be destroyed on addon env teardown before the whole node env is able to shutdown. PR-URL: https://github.com/nodejs/node/pull/38000 Reviewed-By:Michael Dawson <midawson@redhat.com> Reviewed-By:
Gabriel Schulhof <gabriel.schulhof@intel.com>
parent
d4f33f10
Please register or sign in to comment