Skip to content

Commit

Permalink
Always throw if the used flag is set. Not only if body is non-null. F…
Browse files Browse the repository at this point in the history
…ixes #55.
  • Loading branch information
annevk committed Jul 16, 2015
1 parent 3a21ed3 commit 9c33150
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 26 deletions.
20 changes: 7 additions & 13 deletions Overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -3447,20 +3447,14 @@ <h3 id="request-class"><span class="secno">6.3 </span>Request class</h3>
constructor must run these steps:

<ol>
<li><p>Let <var title="">temporaryBody</var> be null.

<li>
<p>If <var title="">input</var> is a <code><a href="#request">Request</a></code> object and
<var title="">input</var>'s <a href="#concept-body-body" title="concept-Body-body">body</a> is non-null, run
these substeps:

<ol>
<li><p>If <var title="">input</var>'s <a href="#concept-body-used-flag" title="concept-Body-used-flag">used flag</a>
is set, <a class="external" href="https://heycam.github.io/webidl/#dfn-throw">throw</a> a <code title="">TypeError</code>.
<li><p>If <var title="">input</var> is a <code><a href="#request">Request</a></code> object and its
<a href="#concept-body-used-flag" title="concept-Body-used-flag">used flag</a>is set,
<a class="external" href="https://heycam.github.io/webidl/#dfn-throw">throw</a> a <code title="">TypeError</code>.

<li><p>Set <var title="">temporaryBody</var> to <var title="">input</var>'s
<a href="#concept-body-body" title="concept-Body-body">body</a>.
</ol>
<li><p>Let <var title="">temporaryBody</var> be <var title="">input</var>'s
<a href="#concept-body-body" title="concept-Body-body">body</a> if <var title="">input</var> is a
<code><a href="#request">Request</a></code> object and <var title="">input</var>'s
<a href="#concept-body-body" title="concept-Body-body">body</a> is non-null, and null otherwise.

<li><p>Let <var title="">request</var> be <var title="">input</var>'s
<a href="#concept-request-request" title="concept-Request-request">request</a>, if <var title="">input</var> is a
Expand Down
20 changes: 7 additions & 13 deletions Overview.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -3393,20 +3393,14 @@ <h3>Request class</h3>
constructor must run these steps:

<ol>
<li><p>Let <var title>temporaryBody</var> be null.

<li>
<p>If <var title>input</var> is a <code>Request</code> object and
<var title>input</var>'s <span title=concept-Body-body>body</span> is non-null, run
these substeps:

<ol>
<li><p>If <var title>input</var>'s <span title=concept-Body-used-flag>used flag</span>
is set, <span data-anolis-spec=webidl>throw</span> a <code title>TypeError</code>.
<li><p>If <var title>input</var> is a <code>Request</code> object and its
<span title=concept-Body-used-flag>used flag</span>is set,
<span data-anolis-spec=webidl>throw</span> a <code title>TypeError</code>.

<li><p>Set <var title>temporaryBody</var> to <var title>input</var>'s
<span title=concept-Body-body>body</span>.
</ol>
<li><p>Let <var title>temporaryBody</var> be <var title>input</var>'s
<span title=concept-Body-body>body</span> if <var title>input</var> is a
<code>Request</code> object and <var title>input</var>'s
<span title=concept-Body-body>body</span> is non-null, and null otherwise.

<li><p>Let <var title>request</var> be <var title>input</var>'s
<span title=concept-Request-request>request</span>, if <var title>input</var> is a
Expand Down

0 comments on commit 9c33150

Please sign in to comment.