mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47:34 +00:00
LibJS: Convert IteratorComplete AO to ThrowCompletionOr
This commit is contained in:
parent
8be1caa05d
commit
a64752cd34
4 changed files with 15 additions and 13 deletions
|
@ -22,7 +22,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 = {});
|
||||
ThrowCompletionOr<Object*> iterator_step(GlobalObject&, Object& iterator);
|
||||
bool iterator_complete(GlobalObject&, Object& iterator_result);
|
||||
ThrowCompletionOr<bool> iterator_complete(GlobalObject&, Object& iterator_result);
|
||||
Value iterator_value(GlobalObject&, Object& iterator_result);
|
||||
void iterator_close(Object& iterator);
|
||||
Object* create_iterator_result_object(GlobalObject&, Value value, bool done);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue