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>If <var>reason</var> is undefined or not given, then let <var>reason</var> be a new

I might be misunderstanding but isn't "undefined" and "not given" (i.e. "missing") two different things so we should check for both? 
Also, if `reason` is not given, doesn't that technically mean it is not an existing variable? Or is it considered existing if it is an optional argument?

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

Received on Thursday, 21 October 2021 04:22:23 UTC