fix: minor changes in dispatcher-base.js and types for Dispatcher by Uzlopak · Pull Request #4556 · nodejs/undici (original) (raw)
Pull Request Overview
This PR makes minor improvements to the dispatcher-base.js file and updates TypeScript type definitions to ensure better error handling and type compliance. The changes focus on making the close and destroy methods more consistent while improving error stack trace quality.
- Standardized null coalescing assignment operators for cleaner code consistency
- Improved error instantiation timing to provide meaningful stack traces
- Updated JSDoc type annotations for better type checking
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.