- From: James Browning <notifications@github.com>
- Date: Mon, 22 Nov 2021 19:18:41 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 23 November 2021 03:18:54 UTC
So the core reason for this issue has effectively been resolved by the [addition of the new `abortSignal.reason`](https://github.com/whatwg/dom/pull/1027). However that PR does give a rather nice basis for methods like `abortSignal.assertNotAborted()` in that we already have the error available. i.e. Instead of the original code in the OP we could now just have (roughly): ```js AbortSignal.prototype.assertNotAborted = function() { if (this.aborted) throw this.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/927#issuecomment-976126889
Received on Tuesday, 23 November 2021 03:18:54 UTC