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
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1759 +/- ##
==========================================
- Coverage 63.68% 63.27% -0.41%
==========================================
Files 3 3
Lines 2065 2091 +26
Branches 731 744 +13
==========================================
+ Hits 1315 1323 +8
- Misses 162 173 +11
- Partials 588 595 +7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
"Hi @KevinEady , I have pushed a fix for the Windows CI failure in commit f4d293c (properly awaiting worker termination and removing script evaluation from the finalizer). Could you please approve the workflow run when you have a moment? Thank you!" |
|
Not sure if the failure was due to the code, since it looks like it was failing while building, but re-ran anyway |
|
|
@KevinEady |
