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
Notes: sideshowbarker 2024-07-16 23:05:02 +09:00
12 changed files with 19 additions and 19 deletions

View file

@ -74,7 +74,7 @@ static JS::ThrowCompletionOr<Vector<String>> convert_value_to_sequence_of_string
// 3. Repeat
for (;;) {
// 1. Let next be ? IteratorStep(iter).
auto* next = TRY(JS::iterator_step(vm, iterator));
auto next = TRY(JS::iterator_step(vm, iterator));
// 2. If next is false, then return an IDL sequence value of type sequence<T> of length i, where the value of the element at index j is Sj.
if (!next)