mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 15:27:34 +00:00
LibJS: Convert IteratorStep AO to ThrowCompletionOr
This commit is contained in:
parent
c981d7b9bd
commit
8be1caa05d
7 changed files with 12 additions and 20 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue