diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/IteratorOperations.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/IteratorOperations.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/IteratorOperations.h b/Userland/Libraries/LibJS/Runtime/IteratorOperations.h index 8671efd695..8afcbda067 100644 --- a/Userland/Libraries/LibJS/Runtime/IteratorOperations.h +++ b/Userland/Libraries/LibJS/Runtime/IteratorOperations.h @@ -19,12 +19,11 @@ enum class IteratorHint { }; Object* get_iterator(GlobalObject&, Value value, IteratorHint hint = IteratorHint::Sync, Value method = {}); -bool is_iterator_complete(Object& iterator_result); -Value create_iterator_result_object(GlobalObject&, Value value, bool done); - Object* iterator_next(Object& iterator, Value value = {}); +bool iterator_complete(GlobalObject&, Object& iterator_result); +Value iterator_value(GlobalObject&, Object& iterator_result); void iterator_close(Object& iterator); - +Value create_iterator_result_object(GlobalObject&, Value value, bool done); MarkedValueList iterable_to_list(GlobalObject&, Value iterable, Value method = {}); enum class CloseOnAbrupt { |