Re: [whatwg/dom] Expose `signal.reason` as `error.cause` for `AbortError` (Issue #1090)

The discussion that introduced this feature goes into this. It's essentially a way to signal an exception. If you want to say it's an "AbortError" DOMException and provide additional data, you'd have to annotate that exception object with that data and signal with that.

It's a bit unfortunate that the Fetch integration isn't complete yet. I've added a comment to https://github.com/whatwg/fetch/pull/1343 to help speed that along.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1090#issuecomment-1192272464
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1090/1192272464@github.com>

Received on Friday, 22 July 2022 07:30:35 UTC