mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-06 03:02:55 +00:00
LibJS: Port iterator_step() to GCPtr
This commit is contained in:
parent
e54536421a
commit
aff1ec6014
Notes:
sideshowbarker
2024-07-16 23:05:02 +09:00
Author: https://github.com/linusg
Commit: aff1ec6014
12 changed files with 19 additions and 19 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue