LibJS: Convert IteratorStep AO to ThrowCompletionOr

This commit is contained in:
Timothy Flynn 2021-10-20 08:56:01 -04:00 committed by Linus Groh
commit 8be1caa05d
Notes: sideshowbarker 2024-07-18 02:07:07 +09:00
7 changed files with 12 additions and 20 deletions

View file

@ -21,7 +21,7 @@ enum class IteratorHint {
ThrowCompletionOr<Object*> get_iterator(GlobalObject&, Value value, IteratorHint hint = IteratorHint::Sync, Value method = {});
ThrowCompletionOr<Object*> iterator_next(Object& iterator, Value value = {});
Object* iterator_step(GlobalObject&, Object& iterator);
ThrowCompletionOr<Object*> iterator_step(GlobalObject&, Object& iterator);
bool iterator_complete(GlobalObject&, Object& iterator_result);
Value iterator_value(GlobalObject&, Object& iterator_result);
void iterator_close(Object& iterator);