src: store pointer to Environment on DestroyParam
To avoid a potential segfault when inside WeakCallback, store a reference to Environment inside DestroyParam. PR-URL: https://github.com/nodejs/node/pull/21099 Reviewed-By:Yang Guo <yangguo@chromium.org> Reviewed-By:
Anna Henningsen <anna@addaleax.net> Reviewed-By:
James M Snell <jasnell@gmail.com> Reviewed-By:
Tiancheng "Timothy" Gu <timothygu99@gmail.com> Co-authored-by:
Yang Guo <yangguo@chromium.org> Co-authored-by:
Michaël Zasso <targos@protonmail.com>
parent
3c5b8b46
Please register or sign in to comment