Skip to content

Commit

Permalink
Being explicit about rejecting
Browse files Browse the repository at this point in the history
  • Loading branch information
jakearchibald authored and annevk committed Jul 5, 2017
1 parent 749062f commit 1870bb1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1601,11 +1601,8 @@ the following:
<li>Let |p| be [=a new promise=].
<li>If |options|' <code>signal</code> member is present, then:
<ol>
<li>If |options|' <code>signal</code>'s [=AbortSignal/aborted flag=] is set, throw an
"{{AbortError}}" {{DOMException}}.
<div class=note>
As this method returns a promise, throwing is automatically turned into a rejection.
</div>
<li>If |options|' <code>signal</code>'s [=AbortSignal/aborted flag=] is set, [=reject=] |p|
with an "{{AbortError}}" {{DOMException}} and return |p|.
<li>[=AbortSignal/Add|Add the following abort steps=] |options|' <code>signal</code>:
<ol>
<li>Stop doing amazing things.
Expand Down

0 comments on commit 1870bb1

Please sign in to comment.