src: store `Local` for `CallbackScope` on stack · nodejs/node@234c26c · GitHub
Skip to content

Commit 234c26c

Browse files
authored
src: store Local for CallbackScope on stack
This is a requirement of the V8 API, but requires a separate semver-major change (as it is ABI-breaking) to address. (There's also a similar requirement for `napi_open_callback_scope` that would not be easily addressable without breaking ABI compatibility there as well. In real-world situations, it seems extremely unlikely that the `CallbackScope` would be the only reference to the resource object.) PR-URL: #59705 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
1 parent d58343e commit 234c26c

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/api/callback.cc

Lines changed: 4 additions & 4 deletions

src/node.h

Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)