Re: [whatwg/fetch] Add abort reason to abort fetch (PR #1343)

@annevk commented on this pull request.



> + <li><p>If <var>error</var> is not given, let <var>error</var> be an
+ "<code><a exception>AbortError</a></code>" {{DOMException}}.

An alternative might be to pass the signal on and then we define

> The **error** of an `AbortSignal` object _signal_ is ...

That might make it a bit easier to use. I.e., callers can say "throw _signal_'s error".

-- 
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/fetch/pull/1343#discussion_r737193380

Received on Wednesday, 27 October 2021 07:44:31 UTC