Re: [whatwg/dom] Add abort reason to AbortSignal (PR #1027)

@nidhijaju commented on this pull request.



>  
 <ol>
  <li><p>Let <var>signal</var> be a new {{AbortSignal}} object.
 
  <li><p>Set <var>signal</var>'s [=AbortSignal/aborted flag=].
 
+ <li><p>Set <var>signal</var>'s [=AbortSignal/abort reason=] to <var>reason</var> if it is given;
+ otherwise to a new "{{AbortError!!exception}}" {{DOMException}}.

I personally feel like it might be slightly confusing because of the extra steps, so I've left it as is since both of you said either way was okay. However, if you change your mind and prefer using "Signal abort on _signal_" instead, please let me know and I can change it :)

-- 
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/pull/1027#discussion_r736162481

Received on Tuesday, 26 October 2021 05:25:50 UTC