@@ -7274,7 +7274,7 @@ <h1>
7274
7274
1. Perform ? GeneratorYield(CreateIteratorResultObject(_E_, *false*)).
7275
7275
1. Return NormalCompletion(*undefined*).
7276
7276
1. Let _iterator_ be CreateIteratorFromClosure(_closure_, ~empty~, %Iterator.prototype%).
7277
- 1. Return the Iterator Record { [[Iterator]]: _iterator_, [[NextMethod]]: %GeneratorFunction.prototype.prototype .next%, [[Done]]: *false* }.
7277
+ 1. Return the Iterator Record { [[Iterator]]: _iterator_, [[NextMethod]]: %GeneratorPrototype .next%, [[Done]]: *false* }.
7278
7278
</emu-alg>
7279
7279
<emu-note>
7280
7280
<p>The list iterator object is never directly accessible to ECMAScript code.</p>
@@ -23980,7 +23980,7 @@ <h1>
23980
23980
1. Let _closure_ be OrdinaryFunctionCreate(%GeneratorFunction.prototype%, _sourceText_, |UniqueFormalParameters|, |GeneratorBody|, ~non-lexical-this~, _env_, _privateEnv_).
23981
23981
1. Perform MakeMethod(_closure_, _object_).
23982
23982
1. Perform SetFunctionName(_closure_, _propKey_).
23983
- 1. Let _prototype_ be OrdinaryObjectCreate(%GeneratorFunction.prototype.prototype %).
23983
+ 1. Let _prototype_ be OrdinaryObjectCreate(%GeneratorPrototype %).
23984
23984
1. Perform ! DefinePropertyOrThrow(_closure_, *"prototype"*, PropertyDescriptor { [[Value]]: _prototype_, [[Writable]]: *true*, [[Enumerable]]: *false*, [[Configurable]]: *false* }).
23985
23985
1. Return ? DefineMethodProperty(_object_, _propKey_, _closure_, _enumerable_).
23986
23986
</emu-alg>
@@ -23995,7 +23995,7 @@ <h1>
23995
23995
1. Let _closure_ be OrdinaryFunctionCreate(%AsyncGeneratorFunction.prototype%, _sourceText_, |UniqueFormalParameters|, |AsyncGeneratorBody|, ~non-lexical-this~, _env_, _privateEnv_).
23996
23996
1. Perform MakeMethod(_closure_, _object_).
23997
23997
1. Perform SetFunctionName(_closure_, _propKey_).
23998
- 1. Let _prototype_ be OrdinaryObjectCreate(%AsyncGeneratorFunction.prototype.prototype %).
23998
+ 1. Let _prototype_ be OrdinaryObjectCreate(%AsyncGeneratorPrototype %).
23999
23999
1. Perform ! DefinePropertyOrThrow(_closure_, *"prototype"*, PropertyDescriptor { [[Value]]: _prototype_, [[Writable]]: *true*, [[Enumerable]]: *false*, [[Configurable]]: *false* }).
24000
24000
1. Return ? DefineMethodProperty(_object_, _propKey_, _closure_, _enumerable_).
24001
24001
</emu-alg>
@@ -24115,7 +24115,7 @@ <h1>
24115
24115
<emu-grammar>GeneratorBody : FunctionBody</emu-grammar>
24116
24116
<emu-alg>
24117
24117
1. Perform ? FunctionDeclarationInstantiation(_functionObject_, _argumentsList_).
24118
- 1. Let _G_ be ? OrdinaryCreateFromConstructor(_functionObject_, *"%GeneratorFunction.prototype.prototype %"*, « [[GeneratorState]], [[GeneratorContext]], [[GeneratorBrand]] »).
24118
+ 1. Let _G_ be ? OrdinaryCreateFromConstructor(_functionObject_, *"%GeneratorPrototype %"*, « [[GeneratorState]], [[GeneratorContext]], [[GeneratorBrand]] »).
24119
24119
1. Set _G_.[[GeneratorBrand]] to ~empty~.
24120
24120
1. Set _G_.[[GeneratorState]] to ~suspended-start~.
24121
24121
1. Perform GeneratorStart(_G_, |FunctionBody|).
@@ -24138,7 +24138,7 @@ <h1>
24138
24138
1. Let _sourceText_ be the source text matched by |GeneratorDeclaration|.
24139
24139
1. Let _F_ be OrdinaryFunctionCreate(%GeneratorFunction.prototype%, _sourceText_, |FormalParameters|, |GeneratorBody|, ~non-lexical-this~, _env_, _privateEnv_).
24140
24140
1. Perform SetFunctionName(_F_, _name_).
24141
- 1. Let _prototype_ be OrdinaryObjectCreate(%GeneratorFunction.prototype.prototype %).
24141
+ 1. Let _prototype_ be OrdinaryObjectCreate(%GeneratorPrototype %).
24142
24142
1. Perform ! DefinePropertyOrThrow(_F_, *"prototype"*, PropertyDescriptor { [[Value]]: _prototype_, [[Writable]]: *true*, [[Enumerable]]: *false*, [[Configurable]]: *false* }).
24143
24143
1. Return _F_.
24144
24144
</emu-alg>
@@ -24147,7 +24147,7 @@ <h1>
24147
24147
1. Let _sourceText_ be the source text matched by |GeneratorDeclaration|.
24148
24148
1. Let _F_ be OrdinaryFunctionCreate(%GeneratorFunction.prototype%, _sourceText_, |FormalParameters|, |GeneratorBody|, ~non-lexical-this~, _env_, _privateEnv_).
24149
24149
1. Perform SetFunctionName(_F_, *"default"*).
24150
- 1. Let _prototype_ be OrdinaryObjectCreate(%GeneratorFunction.prototype.prototype %).
24150
+ 1. Let _prototype_ be OrdinaryObjectCreate(%GeneratorPrototype %).
24151
24151
1. Perform ! DefinePropertyOrThrow(_F_, *"prototype"*, PropertyDescriptor { [[Value]]: _prototype_, [[Writable]]: *true*, [[Enumerable]]: *false*, [[Configurable]]: *false* }).
24152
24152
1. Return _F_.
24153
24153
</emu-alg>
@@ -24172,7 +24172,7 @@ <h1>
24172
24172
1. Let _sourceText_ be the source text matched by |GeneratorExpression|.
24173
24173
1. Let _closure_ be OrdinaryFunctionCreate(%GeneratorFunction.prototype%, _sourceText_, |FormalParameters|, |GeneratorBody|, ~non-lexical-this~, _env_, _privateEnv_).
24174
24174
1. Perform SetFunctionName(_closure_, _name_).
24175
- 1. Let _prototype_ be OrdinaryObjectCreate(%GeneratorFunction.prototype.prototype %).
24175
+ 1. Let _prototype_ be OrdinaryObjectCreate(%GeneratorPrototype %).
24176
24176
1. Perform ! DefinePropertyOrThrow(_closure_, *"prototype"*, PropertyDescriptor { [[Value]]: _prototype_, [[Writable]]: *true*, [[Enumerable]]: *false*, [[Configurable]]: *false* }).
24177
24177
1. Return _closure_.
24178
24178
</emu-alg>
@@ -24187,7 +24187,7 @@ <h1>
24187
24187
1. Let _sourceText_ be the source text matched by |GeneratorExpression|.
24188
24188
1. Let _closure_ be OrdinaryFunctionCreate(%GeneratorFunction.prototype%, _sourceText_, |FormalParameters|, |GeneratorBody|, ~non-lexical-this~, _funcEnv_, _privateEnv_).
24189
24189
1. Perform SetFunctionName(_closure_, _name_).
24190
- 1. Let _prototype_ be OrdinaryObjectCreate(%GeneratorFunction.prototype.prototype %).
24190
+ 1. Let _prototype_ be OrdinaryObjectCreate(%GeneratorPrototype %).
24191
24191
1. Perform ! DefinePropertyOrThrow(_closure_, *"prototype"*, PropertyDescriptor { [[Value]]: _prototype_, [[Writable]]: *true*, [[Enumerable]]: *false*, [[Configurable]]: *false* }).
24192
24192
1. Perform ! _funcEnv_.InitializeBinding(_name_, _closure_).
24193
24193
1. Return _closure_.
@@ -24343,7 +24343,7 @@ <h1>
24343
24343
</emu-grammar>
24344
24344
<emu-alg>
24345
24345
1. Perform ? FunctionDeclarationInstantiation(_functionObject_, _argumentsList_).
24346
- 1. Let _generator_ be ? OrdinaryCreateFromConstructor(_functionObject_, *"%AsyncGeneratorFunction.prototype.prototype %"*, « [[AsyncGeneratorState]], [[AsyncGeneratorContext]], [[AsyncGeneratorQueue]], [[GeneratorBrand]] »).
24346
+ 1. Let _generator_ be ? OrdinaryCreateFromConstructor(_functionObject_, *"%AsyncGeneratorPrototype %"*, « [[AsyncGeneratorState]], [[AsyncGeneratorContext]], [[AsyncGeneratorQueue]], [[GeneratorBrand]] »).
24347
24347
1. Set _generator_.[[GeneratorBrand]] to ~empty~.
24348
24348
1. Set _generator_.[[AsyncGeneratorState]] to ~suspended-start~.
24349
24349
1. Perform AsyncGeneratorStart(_generator_, |FunctionBody|).
@@ -24368,7 +24368,7 @@ <h1>
24368
24368
1. Let _sourceText_ be the source text matched by |AsyncGeneratorDeclaration|.
24369
24369
1. Let _F_ be OrdinaryFunctionCreate(%AsyncGeneratorFunction.prototype%, _sourceText_, |FormalParameters|, |AsyncGeneratorBody|, ~non-lexical-this~, _env_, _privateEnv_).
24370
24370
1. Perform SetFunctionName(_F_, _name_).
24371
- 1. Let _prototype_ be OrdinaryObjectCreate(%AsyncGeneratorFunction.prototype.prototype %).
24371
+ 1. Let _prototype_ be OrdinaryObjectCreate(%AsyncGeneratorPrototype %).
24372
24372
1. Perform ! DefinePropertyOrThrow(_F_, *"prototype"*, PropertyDescriptor { [[Value]]: _prototype_, [[Writable]]: *true*, [[Enumerable]]: *false*, [[Configurable]]: *false* }).
24373
24373
1. Return _F_.
24374
24374
</emu-alg>
@@ -24379,7 +24379,7 @@ <h1>
24379
24379
1. Let _sourceText_ be the source text matched by |AsyncGeneratorDeclaration|.
24380
24380
1. Let _F_ be OrdinaryFunctionCreate(%AsyncGeneratorFunction.prototype%, _sourceText_, |FormalParameters|, |AsyncGeneratorBody|, ~non-lexical-this~, _env_, _privateEnv_).
24381
24381
1. Perform SetFunctionName(_F_, *"default"*).
24382
- 1. Let _prototype_ be OrdinaryObjectCreate(%AsyncGeneratorFunction.prototype.prototype %).
24382
+ 1. Let _prototype_ be OrdinaryObjectCreate(%AsyncGeneratorPrototype %).
24383
24383
1. Perform ! DefinePropertyOrThrow(_F_, *"prototype"*, PropertyDescriptor { [[Value]]: _prototype_, [[Writable]]: *true*, [[Enumerable]]: *false*, [[Configurable]]: *false* }).
24384
24384
1. Return _F_.
24385
24385
</emu-alg>
@@ -24406,7 +24406,7 @@ <h1>
24406
24406
1. Let _sourceText_ be the source text matched by |AsyncGeneratorExpression|.
24407
24407
1. Let _closure_ be OrdinaryFunctionCreate(%AsyncGeneratorFunction.prototype%, _sourceText_, |FormalParameters|, |AsyncGeneratorBody|, ~non-lexical-this~, _env_, _privateEnv_).
24408
24408
1. Perform SetFunctionName(_closure_, _name_).
24409
- 1. Let _prototype_ be OrdinaryObjectCreate(%AsyncGeneratorFunction.prototype.prototype %).
24409
+ 1. Let _prototype_ be OrdinaryObjectCreate(%AsyncGeneratorPrototype %).
24410
24410
1. Perform ! DefinePropertyOrThrow(_closure_, *"prototype"*, PropertyDescriptor { [[Value]]: _prototype_, [[Writable]]: *true*, [[Enumerable]]: *false*, [[Configurable]]: *false* }).
24411
24411
1. Return _closure_.
24412
24412
</emu-alg>
@@ -24423,7 +24423,7 @@ <h1>
24423
24423
1. Let _sourceText_ be the source text matched by |AsyncGeneratorExpression|.
24424
24424
1. Let _closure_ be OrdinaryFunctionCreate(%AsyncGeneratorFunction.prototype%, _sourceText_, |FormalParameters|, |AsyncGeneratorBody|, ~non-lexical-this~, _funcEnv_, _privateEnv_).
24425
24425
1. Perform SetFunctionName(_closure_, _name_).
24426
- 1. Let _prototype_ be OrdinaryObjectCreate(%AsyncGeneratorFunction.prototype.prototype %).
24426
+ 1. Let _prototype_ be OrdinaryObjectCreate(%AsyncGeneratorPrototype %).
24427
24427
1. Perform ! DefinePropertyOrThrow(_closure_, *"prototype"*, PropertyDescriptor { [[Value]]: _prototype_, [[Writable]]: *true*, [[Enumerable]]: *false*, [[Configurable]]: *false* }).
24428
24428
1. Perform ! _funcEnv_.InitializeBinding(_name_, _closure_).
24429
24429
1. Return _closure_.
@@ -30510,10 +30510,10 @@ <h1>
30510
30510
1. Let _F_ be OrdinaryFunctionCreate(_proto_, _sourceText_, _parameters_, _body_, ~non-lexical-this~, _env_, _privateEnv_).
30511
30511
1. Perform SetFunctionName(_F_, *"anonymous"*).
30512
30512
1. If _kind_ is ~generator~, then
30513
- 1. Let _prototype_ be OrdinaryObjectCreate(%GeneratorFunction.prototype.prototype %).
30513
+ 1. Let _prototype_ be OrdinaryObjectCreate(%GeneratorPrototype %).
30514
30514
1. Perform ! DefinePropertyOrThrow(_F_, *"prototype"*, PropertyDescriptor { [[Value]]: _prototype_, [[Writable]]: *true*, [[Enumerable]]: *false*, [[Configurable]]: *false* }).
30515
30515
1. Else if _kind_ is ~async-generator~, then
30516
- 1. Let _prototype_ be OrdinaryObjectCreate(%AsyncGeneratorFunction.prototype.prototype %).
30516
+ 1. Let _prototype_ be OrdinaryObjectCreate(%AsyncGeneratorPrototype %).
30517
30517
1. Perform ! DefinePropertyOrThrow(_F_, *"prototype"*, PropertyDescriptor { [[Value]]: _prototype_, [[Writable]]: *true*, [[Enumerable]]: *false*, [[Configurable]]: *false* }).
30518
30518
1. Else if _kind_ is ~normal~, then
30519
30519
1. Perform MakeConstructor(_F_).
0 commit comments