@@ -12946,7 +12946,8 @@ must be {{%Iterator.prototype%}}.
|
12946 | 12946 | |
12947 | 12947 | An [=iterator prototype object=] must have a <code class="idl">next</code> data property with attributes |
12948 | 12948 | { \[[Writable]]: <emu-val>true</emu-val>, \[[Enumerable]]: <emu-val>true</emu-val>, \[[Configurable]]: <emu-val>true</emu-val> } |
12949 | | - and whose value is a [=built-in function object=] that behaves as follows: |
| 12949 | + and whose value is the [=built-in function object=] [$CreateBuiltinFunction$](|nextSteps|, 0, "<code>next</code>", « »), |
| 12950 | + where |nextSteps| is the following algorithm: |
12950 | 12951 | |
12951 | 12952 | 1. Let |interface| be the [=interface=] for which the |
12952 | 12953 | [=iterator prototype object=] exists. |
@@ -13119,7 +13120,8 @@ The \[[Prototype]] [=/internal slot=] of an [=asynchronous iterator prototype ob
|
13119 | 13120 | An [=asynchronous iterator prototype object=] must have a <code class="idl">next</code> data |
13120 | 13121 | property with attributes { \[[Writable]]: <emu-val>true</emu-val>, |
13121 | 13122 | \[[Enumerable]]: <emu-val>true</emu-val>, \[[Configurable]]: <emu-val>true</emu-val> } |
13122 | | - and whose value is a [=built-in function object=] that behaves as follows: |
| 13123 | + and whose value is the [=built-in function object=] [$CreateBuiltinFunction$](|nextSteps|, 0, "<code>next</code>", « »), |
| 13124 | + where |nextSteps| is the following algorithm: |
13123 | 13125 | |
13124 | 13126 | 1. Let |interface| be the [=interface=] for which the |
13125 | 13127 | [=asynchronous iterator prototype object=] exists. |
@@ -13208,8 +13210,8 @@ The \[[Prototype]] [=/internal slot=] of an [=asynchronous iterator prototype ob
|
13208 | 13210 | [=asynchronous iterator prototype object=] must have a <code class="idl">return</code> data |
13209 | 13211 | property with attributes { \[[Writable]]: <emu-val>true</emu-val>, |
13210 | 13212 | \[[Enumerable]]: <emu-val>true</emu-val>, \[[Configurable]]: <emu-val>true</emu-val> } |
13211 | | - and whose value is a [=built-in function object=], taking one argument |value|, that behaves as |
13212 | | -follows: |
| 13213 | + and whose value is the [=built-in function object=] [$CreateBuiltinFunction$](|returnSteps|, 1, "<code>return</code>", « »), |
| 13214 | +where |returnSteps| is the following algorithm taking one argument |value|: |
13213 | 13215 | |
13214 | 13216 | 1. Let |interface| be the [=interface=] for which the |
13215 | 13217 | [=asynchronous iterator prototype object=] exists. |
|