Skip to content

Commit

Permalink
update generator state enum from "suspendedStart" to "suspended-start" (
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Dec 12, 2023
1 parent f939dfd commit f1427ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.html
Expand Up @@ -286,7 +286,7 @@ <h1>%IteratorHelperPrototype%.return ( )</h1>
1. Let _O_ be *this* value.
1. Perform ? RequireInternalSlot(_O_, [[UnderlyingIterator]]).
1. Assert: _O_ has a [[GeneratorState]] slot.
1. If _O_.[[GeneratorState]] is ~suspendedStart~, then
1. If _O_.[[GeneratorState]] is ~suspended-start~, then
1. Set _O_.[[GeneratorState]] to ~completed~.
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 _O_ can be discarded at this point.
1. Perform ? IteratorClose(_O_.[[UnderlyingIterator]], NormalCompletion(~unused~)).
Expand Down

0 comments on commit f1427ec

Please sign in to comment.