Repository navigation
Conversation
dave-365
commented
Nov 3, 2026
Problem BackgroundDuring application hot reload, pending This is particularly relevant to developers using Related discussion: [Issue #1109](#1109) Proposed SolutionThis PR introduces environment cleanup handling for The intention is to prevent event-loop hangs and improve application stability during hot reload. ImpactThis fix may benefit developers using Review RequestCould the maintainers please review the proposed cleanup approach and provide feedback on any lifecycle or thread-safety concerns? |
|
Hi @dave-365 , Is there any way to include a test in this PR? We have some tests already that check for various behavior in terminating environments, e.g. https://github.com/nodejs/node-addon-api/blob/main/test/error_terminating_environment.js . Maybe you can follow this pattern? |
@KevinEady Okay I will include test in this PR. |
…clean hool after free and no use, test afainst cpp bingidn noe and nodeexcept and onenvi tear down duplicate remvoal and while terminative napi cancelled no call onOk and OnError function
Hi @KevinEady I have addressed the review feedback and added automated tests following the pattern in
|