node-api: make reference weak parameter an indirect link to references · nodejs/node@4afcd55 · GitHub
Skip to content

Commit 4afcd55

Browse files
committed
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: #38000 Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
1 parent d4f33f1 commit 4afcd55

1 file changed

Lines changed: 81 additions & 17 deletions

File tree

src/js_native_api_v8.cc

Lines changed: 81 additions & 17 deletions

0 commit comments

Comments
 (0)