mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:57:35 +00:00
LibJS: Convert IteratorNext AO to ThrowCompletionOr
This commit is contained in:
parent
f4c8f2102f
commit
c981d7b9bd
4 changed files with 31 additions and 30 deletions
|
@ -20,7 +20,7 @@ enum class IteratorHint {
|
|||
};
|
||||
|
||||
ThrowCompletionOr<Object*> get_iterator(GlobalObject&, Value value, IteratorHint hint = IteratorHint::Sync, Value method = {});
|
||||
Object* iterator_next(Object& iterator, Value value = {});
|
||||
ThrowCompletionOr<Object*> iterator_next(Object& iterator, Value value = {});
|
||||
Object* iterator_step(GlobalObject&, Object& iterator);
|
||||
bool iterator_complete(GlobalObject&, Object& iterator_result);
|
||||
Value iterator_value(GlobalObject&, Object& iterator_result);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue