Skip to content

Commit

Permalink
Don't reject and then resolve the same promise. https://www.w3.org/Bu…
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Aug 12, 2014
1 parent 4534058 commit ed5f1b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Overview.html
Expand Up @@ -7,7 +7,7 @@

<p><a class="logo" href="//www.whatwg.org/"><img alt="WHATWG" height="100" src="//resources.whatwg.org/logo-fetch.svg" width="100"></a>
<h1 id="cors">Fetch</h1>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-6-august-2014">Living Standard — Last Updated 6 August 2014</h2>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-12-august-2014">Living Standard — Last Updated 12 August 2014</h2>

<dl>
<dt>This Version:
Expand All @@ -33,7 +33,7 @@ <h2 class="no-num no-toc" id="living-standard-—-last-updated-6-august-2014">Li
<p class="copyright"><a href="http://creativecommons.org/publicdomain/zero/1.0/" rel="license"><img alt="CC0" src="http://i.creativecommons.org/p/zero/1.0/80x15.png"></a>
To the extent possible under law, the editor has waived all copyright and
related or neighboring rights to this work. In addition, as of
6 August 2014, the editor has made this specification available
12 August 2014, the editor has made this specification available
under the
<a href="http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0" rel="license">Open Web Foundation Agreement Version 1.0</a>,
which is available at
Expand Down Expand Up @@ -3050,8 +3050,8 @@ <h3 id="fetch-method"><span class="secno">5.6 </span>Fetch method</h3>
<li><p>If <var title="">response</var>'s <a href="#concept-response-type" title="concept-response-type">type</a> is
<i title="">error</i>, reject <var title="">p</var> with a <code title="">TypeError</code>.

<li><p>Resolve <var title="">p</var> with new <code><a href="#response">Response</a></code> object associated with
<var title="">response</var>.
<li><p>Otherwise, resolve <var title="">p</var> with new <code><a href="#response">Response</a></code> object
associated with <var title="">response</var>.
</ol>

<p>To <a href="#process-response-body">process response body</a> for <var title="">response</var>, do nothing.
Expand Down
4 changes: 2 additions & 2 deletions Overview.src.html
Expand Up @@ -3006,8 +3006,8 @@ <h3>Fetch method</h3>
<li><p>If <var title>response</var>'s <span title=concept-response-type>type</span> is
<i title>error</i>, reject <var title>p</var> with a <code title>TypeError</code>.

<li><p>Resolve <var title>p</var> with new <code>Response</code> object associated with
<var title>response</var>.
<li><p>Otherwise, resolve <var title>p</var> with new <code>Response</code> object
associated with <var title>response</var>.
</ol>

<p>To <span>process response body</span> for <var title>response</var>, do nothing.
Expand Down

0 comments on commit ed5f1b6

Please sign in to comment.