Title: node-api: TSFN user-provided Finalize callback executed before draining queue on aborted TSFN · Issue #60026 · nodejs/node · GitHub
Open Graph Title: node-api: TSFN user-provided Finalize callback executed before draining queue on aborted TSFN · Issue #60026 · nodejs/node
X Title: node-api: TSFN user-provided Finalize callback executed before draining queue on aborted TSFN · Issue #60026 · nodejs/node
Description: It could be the case that the TSFN's context is needed in order to "clean up" data in the user-provided call_js callback. Since the TSFN's user-provided finalizer is called prior to draining the queue, the finalizer may clean/delete the ...
Open Graph Description: It could be the case that the TSFN's context is needed in order to "clean up" data in the user-provided call_js callback. Since the TSFN's user-provided finalizer is called prior to draining the qu...
X Description: It could be the case that the TSFN's context is needed in order to "clean up" data in the user-provided call_js callback. Since the TSFN's user-provided finalizer is called prior ...
Opengraph URL: https://github.com/nodejs/node/issues/60026
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"node-api: TSFN user-provided Finalize callback executed before draining queue on aborted TSFN","articleBody":"It could be the case that the TSFN's `context` is needed in order to \"clean up\" data in the user-provided `call_js` callback.\n\nSince the TSFN's user-provided finalizer is called prior to draining the queue, the finalizer may clean/delete the context, which would then be passed to the call_js_cb as an invalid pointer.\n\nhttps://github.com/nodejs/node/blob/ce72fccc9d3d543eee7a49038759ccd2d8d2d33c/src/node_api.cc#L424-L431\n\nhttps://github.com/nodejs/node/blob/ce72fccc9d3d543eee7a49038759ccd2d8d2d33c/src/node_api.cc#L297-L302","author":{"url":"https://github.com/KevinEady","@type":"Person","name":"KevinEady"},"datePublished":"2025-09-26T15:56:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/60026/node/issues/60026"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5b8d8791-000f-05bb-1d1e-d00912939564 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 953A:13B1D:62020E:867F5B:6A4C7B45 |
| html-safe-nonce | 3d3e3604aff0a683e30b1315c588ff85f82480e98c98ac37630cc2524fde0580 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTNBOjEzQjFEOjYyMDIwRTo4NjdGNUI6NkE0QzdCNDUiLCJ2aXNpdG9yX2lkIjoiNjI4MzE0OTYyNTIyNzI0NjQwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c2c1ef1698af74c7d637410125cd453adb495fd61740f84945d986fe1bbda34f |
| hovercard-subject-tag | issue:3458197302 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/60026/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3ca60859c8136f413517d702e6b9a95b5f79c3e5735743420fe77f389f9fca44/nodejs/node/issues/60026 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3ca60859c8136f413517d702e6b9a95b5f79c3e5735743420fe77f389f9fca44/nodejs/node/issues/60026 |
| og:image:alt | It could be the case that the TSFN's context is needed in order to "clean up" data in the user-provided call_js callback. Since the TSFN's user-provided finalizer is called prior to draining the qu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | KevinEady |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cd470457e909b9d062f8002cf438ba870e6acff6 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width