Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Aug 5, 2024
1 parent 9a79b42 commit 6374863
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -6211,7 +6211,7 @@ only [=list/items=] that are of type |T|.

<h4 id="idl-async-iterable-type" lt="async iterable" dfn export>Async iterable types — async iterable&lt;|T|&gt;</h4>

The <dfn lt="async iterable type" export>async iterable type</dfn> is a parameterized
An <dfn lt="async iterable type" export>async iterable type</dfn> is a parameterized
type whose values are references to objects that can produce an asynchronously iterable, possibly infinite,
sequence of values of type |T|.

Expand Down Expand Up @@ -8173,7 +8173,7 @@ JavaScript Array values.
</div>


<h4 id="js-async-iterable">Async iterable — async iterable&lt;|T|&gt;</h4>
<h4 id="js-async-iterable">Async iterables — async iterable&lt;|T|&gt;</h4>

In the JavaScript binding, IDL [=async iterable type|async iterable=] values are represented by
a [=struct=] with the following [=struct/items=]:
Expand Down Expand Up @@ -8211,7 +8211,7 @@ a [=struct=] with the following [=struct/items=]:
<h5 id="js-async-iterator-iteration">Iterating async iterators</h5>

An [=async iterable=] is not directly iterated over. Instead, it is first opened to create
a [=async iterator=]. The [=async iterator=] can be asynchronously iterated over to produce values.
an [=async iterator=]. The [=async iterator=] can be asynchronously iterated over to produce values.

<dfn lt="async iterator" export>Async iterators</dfn> are [=structs=] with the following [=struct/items=]:
* <dfn for="JS async iterator">underlying record</dfn>, an [=Iterator=] record
Expand Down Expand Up @@ -8265,7 +8265,7 @@ a [=async iterator=]. The [=async iterator=] can be asynchronously iterated over
with a reason |reason|:

1. Let |iteratorRecord| be |iterator|'s [=JS async iterator/underlying record=].
1. Let |iteratorObj| be |iteratorRecord|.\[[Iterator]]
1. Let |iteratorObj| be |iteratorRecord|.\[[Iterator]].
1. Let |returnMethod| be <a abstract-op>GetMethod</a>(|iteratorObj|, "<code>return</code>").
1. If |returnMethod| is an abrupt completion, return [=a promise rejected with=]
|returnMethod|.\[[Value]].
Expand Down

0 comments on commit 6374863

Please sign in to comment.