src: do not require JS Context for `~AsyncResoure()` · nodejs/node@619c5b6 · GitHub
Skip to content

Commit 619c5b6

Browse files
addaleaxtargos
authored andcommitted
src: do not require JS Context for ~AsyncResoure()
Allow the destructor to be called during GC, which is a common use case. PR-URL: #27255 Fixes: #27218 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent 8b5d738 commit 619c5b6

2 files changed

Lines changed: 13 additions & 9 deletions

File tree

src/api/async_resource.cc

Lines changed: 12 additions & 8 deletions

src/node.h

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)