From f1427ecef602ced8cf4c964dee5fca3a9ae73611 Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Tue, 12 Dec 2023 14:07:15 -0800 Subject: [PATCH] update generator state enum from "suspendedStart" to "suspended-start" (#291) --- spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.html b/spec.html index fe1d867..c518e36 100644 --- a/spec.html +++ b/spec.html @@ -286,7 +286,7 @@

%IteratorHelperPrototype%.return ( )

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~)).