1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:38:11 +00:00

LibJS: Port iterator_step() to GCPtr

This commit is contained in:
Linus Groh 2023-04-15 16:23:03 +02:00
parent e54536421a
commit aff1ec6014
12 changed files with 19 additions and 19 deletions

View file

@ -52,7 +52,7 @@ ThrowCompletionOr<MarkedVector<Value>> iterable_to_list_of_type(VM& vm, Value it
// 4. Repeat, while next is not false,
while (next) {
// a. Set next to ? IteratorStep(iteratorRecord).
auto* iterator_result = TRY(iterator_step(vm, iterator_record));
auto iterator_result = TRY(iterator_step(vm, iterator_record));
next = iterator_result;
// b. If next is not false, then