Skip to content

Commit 5501329

Browse files
intincrabljharb
authored andcommitted
Editorial: remove unused AO CreateAsyncIteratorFromClosure (tc39#3628)
1 parent 93b7b2c commit 5501329

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
@@ -50741,35 +50741,6 @@ <h1>
5074150741
1. Return ~unused~.
5074250742
</emu-alg>
5074350743
</emu-clause>
50744-
50745-
<emu-clause id="sec-createasynciteratorfromclosure" type="abstract operation">
50746-
<h1>
50747-
CreateAsyncIteratorFromClosure (
50748-
_closure_: an Abstract Closure with no parameters,
50749-
_generatorBrand_: a String or ~empty~,
50750-
_generatorPrototype_: an Object,
50751-
): an AsyncGenerator
50752-
</h1>
50753-
<dl class="header">
50754-
</dl>
50755-
<emu-alg>
50756-
1. NOTE: _closure_ can contain uses of the Await operation and uses of the Yield operation to yield an IteratorResult object.
50757-
1. Let _internalSlotsList_ be « [[AsyncGeneratorState]], [[AsyncGeneratorContext]], [[AsyncGeneratorQueue]], [[GeneratorBrand]] ».
50758-
1. Let _generator_ be OrdinaryObjectCreate(_generatorPrototype_, _internalSlotsList_).
50759-
1. Set _generator_.[[GeneratorBrand]] to _generatorBrand_.
50760-
1. Set _generator_.[[AsyncGeneratorState]] to ~suspended-start~.
50761-
1. Let _callerContext_ be the running execution context.
50762-
1. Let _calleeContext_ be a new execution context.
50763-
1. Set the Function of _calleeContext_ to *null*.
50764-
1. Set the Realm of _calleeContext_ to the current Realm Record.
50765-
1. Set the ScriptOrModule of _calleeContext_ to _callerContext_'s ScriptOrModule.
50766-
1. If _callerContext_ is not already suspended, suspend _callerContext_.
50767-
1. Push _calleeContext_ onto the execution context stack; _calleeContext_ is now the running execution context.
50768-
1. Perform AsyncGeneratorStart(_generator_, _closure_).
50769-
1. Remove _calleeContext_ from the execution context stack and restore _callerContext_ as the running execution context.
50770-
1. Return _generator_.
50771-
</emu-alg>
50772-
</emu-clause>
5077350744
</emu-clause>
5077450745
</emu-clause>
5077550746

0 commit comments

Comments
 (0)