You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. <ins>Set _generator_.[[GeneratorAsyncContextMapping]] to AsyncContextSnapshot().</ins>
496
498
1. <ins>Else,</ins>
497
499
1. <ins>Set _generator_.[[GeneratorAsyncContextMapping]] to ~empty~.</ins>
498
-
1. Set _generator_.[[GeneratorState]] to ~suspendedStart~.
500
+
1. Set _generator_.[[GeneratorState]] to ~suspended-start~.
499
501
1. Return ~unused~.
500
502
</emu-alg>
501
503
</emu-clause>
@@ -534,7 +536,7 @@ <h1>
534
536
<emu-alg>
535
537
1. Let _state_ be ? GeneratorValidate(_generator_, _generatorBrand_).
536
538
1. If _state_ is ~completed~, return CreateIterResultObject(*undefined*, *true*).
537
-
1.Assert:_state_ is either ~suspendedStart~ or ~suspendedYield~.
539
+
1.Assert:_state_ is either ~suspended-start~ or ~suspended-yield~.
538
540
1. Let _genContext_ be _generator_.[[GeneratorContext]].
539
541
1. Let _methodContext_ be the running execution context.
540
542
1. Suspend _methodContext_.
@@ -565,15 +567,15 @@ <h1>
565
567
</dl>
566
568
<emu-alg>
567
569
1. Let _state_ be ? GeneratorValidate(_generator_, _generatorBrand_).
568
-
1. If _state_ is ~suspendedStart~, then
570
+
1. If _state_ is ~suspended-start~, then
569
571
1. Set _generator_.[[GeneratorState]] to ~completed~.
570
572
1. NOTE: Once a generator enters the ~completed~ state it never leaves it and its associated execution context is never resumed. Any execution state associated with _generator_ can be discarded at this point.
571
573
1. Set _state_ to ~completed~.
572
574
1. If _state_ is ~completed~, then
573
575
1. If _abruptCompletion_.[[Type]] is ~return~, then
1. Let _genContext_ be _generator_.[[GeneratorContext]].
578
580
1. Let _methodContext_ be the running execution context.
579
581
1. Suspend _methodContext_.
@@ -699,7 +701,7 @@ <h1>
699
701
1. Return *undefined*.
700
702
1. Set the code evaluation state of _genContext_ such that when evaluation is resumed for that execution context, _closure_ will be called with no arguments.
701
703
1. Set _generator_.[[AsyncGeneratorContext]] to _genContext_.
702
-
1. Set _generator_.[[AsyncGeneratorState]] to ~suspendedStart~.
704
+
1. Set _generator_.[[AsyncGeneratorState]] to ~suspended-start~.
703
705
1. Set _generator_.[[AsyncGeneratorQueue]] to a new empty List.
704
706
1. <ins>If _generatorBody_ is a |FunctionBody| Parse Node, then</ins>
705
707
1. <ins>Set _generator_.[[AsyncGeneratorAsyncContextMapping]] to AsyncContextSnapshot().</ins>
@@ -738,7 +740,7 @@ <h1>
738
740
<dlclass="header">
739
741
</dl>
740
742
<emu-alg>
741
-
1.Assert:_generator_.[[AsyncGeneratorState]] is either ~suspendedStart~ or ~suspendedYield~.
743
+
1.Assert:_generator_.[[AsyncGeneratorState]] is either ~suspended-start~ or ~suspended-yield~.
742
744
1. Let _genContext_ be _generator_.[[AsyncGeneratorContext]].
743
745
1. Let _callerContext_ be the running execution context.
0 commit comments