Commit 27e156a
fix(quickjs): use unref() on cleanup interval to prevent hang
Added `unref()` call to QuickJS cleanup interval timer to allow
Node.js process to exit even with active interval.
**Issue**: QuickJS sandbox cleanup interval runs every 15 seconds,
preventing process exit during coverage runs and test completion.
**Solution**: Call `unref()` on setInterval to mark it as not
preventing process exit. Process can now cleanly terminate when
all active work completes.
**Impact**: Coverage runs now complete successfully in ~60s instead
of hanging indefinitely.
Test results with fix:
- All unit tests pass
- Coverage collection completes
- Process exits cleanly after tests
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent fb0f151 commit 27e156a
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
377 | 381 | | |
378 | 382 | | |
379 | 383 | | |
| |||
0 commit comments