Skip to content

Commit

Permalink
Clarify the relation between Generator and generator function
Browse files Browse the repository at this point in the history
  • Loading branch information
arai-a committed Dec 10, 2023
1 parent 9010de7 commit 6f212d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -47375,8 +47375,8 @@ <h1>prototype</h1>

<emu-clause id="sec-generator-objects">
<h1>Generator Objects</h1>
<p>A Generator is an instance of a generator function and conforms to both the <i>Iterator</i> and <i>Iterable</i> interfaces.</p>
<p>Generator instances directly inherit properties from the object that is the initial value of the *"prototype"* property of the Generator function that created the instance. Generator instances indirectly inherit properties from %GeneratorPrototype%.</p>
<p>A Generator is created by calling a generator function and conforms to both the <i>Iterator</i> and <i>Iterable</i> interfaces.</p>
<p>Generator instances directly inherit properties from the object that is the initial value of the *"prototype"* property of the generator function that created the instance. Generator instances indirectly inherit properties from %GeneratorPrototype%.</p>

<emu-clause id="sec-%generatorprototype%-object" oldids="sec-properties-of-generator-prototype">
<h1>The %GeneratorPrototype% Object</h1>
Expand Down Expand Up @@ -47685,9 +47685,9 @@ <h1>

<emu-clause id="sec-asyncgenerator-objects">
<h1>AsyncGenerator Objects</h1>
<p>An AsyncGenerator is an instance of an async generator function and conforms to both the AsyncIterator and AsyncIterable interfaces.</p>
<p>An AsyncGenerator is created by calling an async generator function and conforms to both the AsyncIterator and AsyncIterable interfaces.</p>

<p>AsyncGenerator instances directly inherit properties from the object that is the initial value of the *"prototype"* property of the AsyncGenerator function that created the instance. AsyncGenerator instances indirectly inherit properties from %AsyncGeneratorPrototype%.</p>
<p>AsyncGenerator instances directly inherit properties from the object that is the initial value of the *"prototype"* property of the async generator function that created the instance. AsyncGenerator instances indirectly inherit properties from %AsyncGeneratorPrototype%.</p>

<emu-clause id="sec-%asyncgeneratorprototype%-object" oldids="sec-properties-of-asyncgenerator-prototype">
<h1>The %AsyncGeneratorPrototype% Object</h1>
Expand Down

0 comments on commit 6f212d6

Please sign in to comment.