Skip to content

Commit

Permalink
Always return a new Promise from getAvailability(). (#525)
Browse files Browse the repository at this point in the history
* Always return a new Promise from getAvailability().

* Respond to comments
  • Loading branch information
markafoltz authored Oct 8, 2024
1 parent 214830c commit b9a3e3d
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ <h4>
Output
</dt>
<dd>
A <a>PresentationRequest</a> object
A new <a>PresentationRequest</a> object
</dd>
</dl>
<ol>
Expand Down Expand Up @@ -1064,7 +1064,7 @@ <h4>
Output
</dt>
<dd>
A {{Promise}}
A new {{Promise}}
</dd>
</dl>
<ol>
Expand Down Expand Up @@ -1320,7 +1320,7 @@ <h4>
Output
</dt>
<dd>
<var>P</var>, a {{Promise}}
<var>P</var>, a new {{Promise}}
</dd>
</dl>
<ol>
Expand Down Expand Up @@ -1614,17 +1614,12 @@ <h4>
Output
</dt>
<dd>
A {{Promise}}
A new {{Promise}}
</dd>
</dl>
<ol>
<li>If there is an unsettled {{Promise}} from a previous call to
<a data-link-for="PresentationRequest">getAvailability</a> on <var>
presentationRequest</var>, return that {{Promise}} and abort
these steps.
</li>
<li>Otherwise, let <var>P</var> be a new {{Promise}} constructed in
the <a>JavaScript realm</a> of <var>presentationRequest</var>.
<li>Let <var>P</var> be a new {{Promise}} constructed in the
<a>JavaScript realm</a> of <var>presentationRequest</var>.
</li>
<li>Return <var>P</var>, but continue running these steps <a>in
parallel</a>.
Expand Down

0 comments on commit b9a3e3d

Please sign in to comment.