mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-17 07:50:04 +00:00
LibJS: Change generator state enum casing in IteratorHelperPrototype
This is an editorial change in the Iterator Helpers proposal. See:
f1427ec
This commit is contained in:
parent
dee81f3545
commit
48bef246a0
Notes:
github-actions[bot]
2024-08-27 17:01:32 +00:00
Author: https://github.com/trflynn89
Commit: 48bef246a0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1206
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue