fix: clear _timeoutInfo in _onclose() and scope .finally() abort controller cleanup (#1462)

Co-authored-by: Felix Weinberger <fweinberger@anthropic.com>
This commit is contained in:
Paul Carleton 2026-03-23 16:39:42 +00:00 • committed by GitHub
commit 398dc70f64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,7 +22,7 @@ npm run typecheck # Type-check without emitting
- **Files**: Lowercase with hyphens, test files with `.test.ts` suffix
- **Imports**: ES module style, include `.js` extension, group imports logically
- **Formatting**: 2-space indentation, semicolons required, single quotes preferred
- **Testing**: Co-locate tests with source files, use descriptive test names
- **Testing**: Co-locate tests with source files, use descriptive test names. Use `vi.useFakeTimers()` instead of real `setTimeout`/`await` delays in tests
- **Comments**: JSDoc for public APIs, inline comments for complex logic
## Architecture Overview