- From: James M Snell <notifications@github.com>
- Date: Sun, 28 Nov 2021 07:16:01 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 28 November 2021 15:16:13 UTC
That seems backwards. If anything, code listening for the abort would throw their own errors with signal.reason as the cause. E.g.
```js
signal.on('abort', () => {
throw new Error('...', { cause: signal.reason });
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1033#issuecomment-981102511
Received on Sunday, 28 November 2021 15:16:13 UTC