mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 03:26:10 +00:00
LibJS: Convert IteratorStep AO to ThrowCompletionOr
This commit is contained in:
parent
c981d7b9bd
commit
8be1caa05d
Notes:
sideshowbarker
2024-07-18 02:07:07 +09:00
Author: https://github.com/trflynn89
Commit: 8be1caa05d
Pull-request: https://github.com/SerenityOS/serenity/pull/10546
Reviewed-by: https://github.com/IdanHo
Reviewed-by: https://github.com/linusg ✅
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