src: don't touch js object in Http2Session dtor · nodejs/node@420d56c · GitHub
Skip to content

Commit 420d56c

Browse files
bnoordhuisMylesBorins
authored andcommitted
src: don't touch js object in Http2Session dtor
Don't try to update the internal field pointer of the JS object in the destructor. The garbage collector invokes the destructor when the object is collected and is not necessarily in a valid state anymore. Backport-PR-URL: #19185 PR-URL: #18656 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
1 parent f89f659 commit 420d56c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/node_http2.cc

Lines changed: 0 additions & 2 deletions

0 commit comments

Comments
 (0)