Skip to content

Commit 28a3024

Browse files
committed
Remove spurious promise
1 parent 02a45de commit 28a3024

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

fetch.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2719,7 +2719,9 @@ has the following <a for=struct>items</a>:
27192719
<p>"<code>deferred</code>", "<code>scheduled</code>", "<code>terminated</code>",
27202720
"<code>aborted</code>", or "<code>sent</code>"
27212721

2722-
<p class=note>This value can be modified <a>in parallel</a>.
2722+
<p class=note>This value can be modified <a>in parallel</a>. To set it safely, use atomic
2723+
operations, e.g. atomically exchange the value (set it to the new value and return the new value
2724+
in one operation).
27232725
</dl>
27242726

27252727

@@ -8645,12 +8647,10 @@ method steps are:
86458647

86468648
<ol>
86478649
<li><p>Let <var>requestObject</var> be the result of invoking the initial value of {{Request}} as
8648-
constructor with <var>input</var> and <var>init</var> as arguments. If that threw an exception,
8649-
<a for=/>reject</a> <var>promise</var> with that exception and return <var>promise</var>.
8650+
constructor with <var>input</var> and <var>init</var> as arguments. This may throw an exception.
86508651

86518652
<li><p>If <var>requestObject</var>'s <a for=Request>signal</a> is <a for=AbortSignal>aborted</a>,
8652-
then <a for=/>reject</a> <var>promise</var> with <var>requestObject</var>'s
8653-
<a for=Request>signal</a>'s <a for=AbortSignal>abort reason</a> and return <var>promise</var>.
8653+
then throw <a for=Request>signal</a>'s <a for=AbortSignal>abort reason</a>.
86548654

86558655
<li><p>Let <var>request</var> be <var>requestObject</var>'s <a for=Request>request</a>.
86568656

0 commit comments

Comments
 (0)