Skip to content

Commit

Permalink
Editorial: Align wording of "The *Function Constructor" sections" (#1946
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rkirsling authored and ljharb committed Apr 22, 2020
1 parent de57c41 commit 0f694ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -38987,6 +38987,7 @@ <h1>The GeneratorFunction Constructor</h1>
<p>The GeneratorFunction constructor:</p>
<ul>
<li>is the intrinsic object <dfn>%GeneratorFunction%</dfn>.</li>
<li>is a subclass of `Function`.</li>
<li>creates and initializes a new GeneratorFunction object when called as a function rather than as a constructor. Thus the function call `GeneratorFunction (&hellip;)` is equivalent to the object creation expression `new GeneratorFunction (&hellip;)` with the same arguments.</li>
<li>is designed to be subclassable. It may be used as the value of an `extends` clause of a class definition. Subclass constructors that intend to inherit the specified GeneratorFunction behaviour must include a `super` call to the GeneratorFunction constructor to create and initialize subclass instances with the internal slots necessary for built-in GeneratorFunction behaviour. All ECMAScript syntactic forms for defining generator function objects create direct instances of GeneratorFunction. There is no syntactic means to create instances of GeneratorFunction subclasses.</li>
</ul>
Expand Down Expand Up @@ -39093,6 +39094,7 @@ <h1>The AsyncGeneratorFunction Constructor</h1>
<p>The AsyncGeneratorFunction constructor:</p>
<ul>
<li>is the intrinsic object <dfn>%AsyncGeneratorFunction%</dfn>.</li>
<li>is a subclass of `Function`.</li>
<li>creates and initializes a new AsyncGeneratorFunction object when called as a function rather than as a constructor. Thus the function call `AsyncGeneratorFunction (...)` is equivalent to the object creation expression `new AsyncGeneratorFunction (...)` with the same arguments.</li>
<li>is designed to be subclassable. It may be used as the value of an `extends` clause of a class definition. Subclass constructors that intend to inherit the specified AsyncGeneratorFunction behaviour must include a `super` call to the AsyncGeneratorFunction constructor to create and initialize subclass instances with the internal slots necessary for built-in AsyncGeneratorFunction behaviour. All ECMAScript syntactic forms for defining async generator function objects create direct instances of AsyncGeneratorFunction. There is no syntactic means to create instances of AsyncGeneratorFunction subclasses.</li>
</ul>
Expand Down Expand Up @@ -40639,7 +40641,7 @@ <h1>The AsyncFunction Constructor</h1>
<li>is the intrinsic object <dfn>%AsyncFunction%</dfn>.</li>
<li>is a subclass of `Function`.</li>
<li>creates and initializes a new AsyncFunction object when called as a function rather than as a constructor. Thus the function call `AsyncFunction(&hellip;)` is equivalent to the object creation expression `new AsyncFunction(&hellip;)` with the same arguments.</li>
<li>is designed to be subclassable. It may be used as the value of an `extends` clause of a class definition. Subclass constructors that intend to inherit the specified AsyncFunction behaviour must include a `super` call to the AsyncFunction constructor to create and initialize a subclass instance with the internal slots necessary for built-in async function behaviour.</li>
<li>is designed to be subclassable. It may be used as the value of an `extends` clause of a class definition. Subclass constructors that intend to inherit the specified AsyncFunction behaviour must include a `super` call to the AsyncFunction constructor to create and initialize a subclass instance with the internal slots necessary for built-in async function behaviour. All ECMAScript syntactic forms for defining async function objects create direct instances of AsyncFunction. There is no syntactic means to create instances of AsyncFunction subclasses.</li>
</ul>

<emu-clause id="sec-async-function-constructor-arguments">
Expand Down

0 comments on commit 0f694ba

Please # to comment.