()
| 598 | let nextTimerId = 1 |
| 599 | const timers = new Map() |
| 600 | const cleanupTimers = () => { |
| 601 | for (const entry of timers.values()) { |
| 602 | try { |
| 603 | if (entry.recurring) clearInterval(entry.nodeTimer) |
| 604 | else clearTimeout(entry.nodeTimer) |
| 605 | } catch {} |
| 606 | try { |
| 607 | entry.fnRef.release() |
| 608 | } catch {} |
| 609 | } |
| 610 | timers.clear() |
| 611 | } |
| 612 | |
| 613 | // Phase timings (ms). Populated inline during execution; returned in |
| 614 | // every result shape so the host can log where time is spent per request. |
no test coverage detected