Unfortunately, it's becoming increasingly common that errors are used as part of normal control flow.
Hence the current state of constructing errors in Node is not optimal. The errors are heavily enriched with lots of helpful information, however at a huge performance cost. We need to investigate what can be done to improve this and discuss possible compromises.
Unfortunately, it's becoming increasingly common that errors are used as part of normal control flow.
AbortControllerthrows anAbortErroras part of cancellation logic.res.statusCode = 404; res.end(); return;.Hence the current state of constructing errors in Node is not optimal. The errors are heavily enriched with lots of helpful information, however at a huge performance cost. We need to investigate what can be done to improve this and discuss possible compromises.