Skip to content

Commit abec43c

Browse files
committed
Remove spurious promise
1 parent b009e6b commit abec43c

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

@@ -8649,12 +8651,10 @@ method steps are:
86498651

86508652
<ol>
86518653
<li><p>Let <var>requestObject</var> be the result of invoking the initial value of {{Request}} as
8652-
constructor with <var>input</var> and <var>init</var> as arguments. If that threw an exception,
8653-
<a for=/>reject</a> <var>promise</var> with that exception and return <var>promise</var>.
8654+
constructor with <var>input</var> and <var>init</var> as arguments. This may throw an exception.
86548655

86558656
<li><p>If <var>requestObject</var>'s <a for=Request>signal</a> is <a for=AbortSignal>aborted</a>,
8656-
then <a for=/>reject</a> <var>promise</var> with <var>requestObject</var>'s
8657-
<a for=Request>signal</a>'s <a for=AbortSignal>abort reason</a> and return <var>promise</var>.
8657+
then throw <a for=Request>signal</a>'s <a for=AbortSignal>abort reason</a>.
86588658

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

0 commit comments

Comments
 (0)