From 48bef246a0720ae4610b6f9c5dcd42eb8c5b448d Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Tue, 27 Aug 2024 11:10:07 -0400 Subject: [PATCH] LibJS: Change generator state enum casing in IteratorHelperPrototype This is an editorial change in the Iterator Helpers proposal. See: https://github.com/tc39/proposal-iterator-helpers/commit/f1427ec --- Userland/Libraries/LibJS/Runtime/IteratorHelperPrototype.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/IteratorHelperPrototype.cpp b/Userland/Libraries/LibJS/Runtime/IteratorHelperPrototype.cpp index b3d5046b404..2ddba9b6fb4 100644 --- a/Userland/Libraries/LibJS/Runtime/IteratorHelperPrototype.cpp +++ b/Userland/Libraries/LibJS/Runtime/IteratorHelperPrototype.cpp @@ -47,7 +47,7 @@ JS_DEFINE_NATIVE_FUNCTION(IteratorHelperPrototype::return_) auto iterator = TRY(typed_this_object(vm)); // 3. Assert: O has a [[GeneratorState]] slot. - // 4. If O.[[GeneratorState]] is suspendedStart, then + // 4. If O.[[GeneratorState]] is suspended-start, then if (iterator->generator_state() == GeneratorObject::GeneratorState::SuspendedStart) { // a. Set O.[[GeneratorState]] to completed. iterator->set_generator_state(GeneratorObject::GeneratorState::Completed);