Skip to content

Commit c011f74

Browse files
intincrabljharb
authored andcommitted
Editorial: remove unused AO CreateAsyncIteratorFromClosure (tc39#3628)
1 parent ab6f2d5 commit c011f74

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

spec.html

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -50751,35 +50751,6 @@ <h1>
5075150751
1. Return ~unused~.
5075250752
</emu-alg>
5075350753
</emu-clause>
50754-
50755-
<emu-clause id="sec-createasynciteratorfromclosure" type="abstract operation">
50756-
<h1>
50757-
CreateAsyncIteratorFromClosure (
50758-
_closure_: an Abstract Closure with no parameters,
50759-
_generatorBrand_: a String or ~empty~,
50760-
_generatorPrototype_: an Object,
50761-
): an AsyncGenerator
50762-
</h1>
50763-
<dl class="header">
50764-
</dl>
50765-
<emu-alg>
50766-
1. NOTE: _closure_ can contain uses of the Await operation and uses of the Yield operation to yield an IteratorResult object.
50767-
1. Let _internalSlotsList_ be « [[AsyncGeneratorState]], [[AsyncGeneratorContext]], [[AsyncGeneratorQueue]], [[GeneratorBrand]] ».
50768-
1. Let _generator_ be OrdinaryObjectCreate(_generatorPrototype_, _internalSlotsList_).
50769-
1. Set _generator_.[[GeneratorBrand]] to _generatorBrand_.
50770-
1. Set _generator_.[[AsyncGeneratorState]] to ~suspended-start~.
50771-
1. Let _callerContext_ be the running execution context.
50772-
1. Let _calleeContext_ be a new execution context.
50773-
1. Set the Function of _calleeContext_ to *null*.
50774-
1. Set the Realm of _calleeContext_ to the current Realm Record.
50775-
1. Set the ScriptOrModule of _calleeContext_ to _callerContext_'s ScriptOrModule.
50776-
1. If _callerContext_ is not already suspended, suspend _callerContext_.
50777-
1. Push _calleeContext_ onto the execution context stack; _calleeContext_ is now the running execution context.
50778-
1. Perform AsyncGeneratorStart(_generator_, _closure_).
50779-
1. Remove _calleeContext_ from the execution context stack and restore _callerContext_ as the running execution context.
50780-
1. Return _generator_.
50781-
</emu-alg>
50782-
</emu-clause>
5078350754
</emu-clause>
5078450755
</emu-clause>
5078550756

0 commit comments

Comments
 (0)