Re: [whatwg/dom] Encourage use of AbortError for cancellation? (#927)

> If Node doesn't expose DOMException how can we vend abort errors for cases like the reject example above? 

Basically it's up to userland to create a `class AbortError extends Error { code = 'ABORT_ERR' }`.

We can expose it (there has been talk of exposing the internal errors https://github.com/nodejs/node/issues/34348 https://github.com/nodejs/node/issues/14554 ) - honestly no one has asked for Node to expose AbortError yet.

-- 
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-772888658

Received on Wednesday, 3 February 2021 23:08:28 UTC