mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-03 14:50:02 +00:00
LibJS: Implement more IteratorOperations and organize file
Implemented IteratorComplete and IteratorValue, and sorted functions based on their spec ordering.
This commit is contained in:
parent
1f8e643ef0
commit
14fff5df06
Notes:
sideshowbarker
2024-07-18 12:02:30 +09:00
Author: https://github.com/mattco98
Commit: 14fff5df06
Pull-request: https://github.com/SerenityOS/serenity/pull/8033
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/awesomekling
2 changed files with 25 additions and 14 deletions
|
@ -19,12 +19,11 @@ enum class IteratorHint {
|
|||
};
|
||||
|
||||
Object* get_iterator(GlobalObject&, Value value, IteratorHint hint = IteratorHint::Sync, Value method = {});
|
||||
bool is_iterator_complete(Object& iterator_result);
|
||||
Value create_iterator_result_object(GlobalObject&, Value value, bool done);
|
||||
|
||||
Object* iterator_next(Object& iterator, Value value = {});
|
||||
bool iterator_complete(GlobalObject&, Object& iterator_result);
|
||||
Value iterator_value(GlobalObject&, Object& iterator_result);
|
||||
void iterator_close(Object& iterator);
|
||||
|
||||
Value create_iterator_result_object(GlobalObject&, Value value, bool done);
|
||||
MarkedValueList iterable_to_list(GlobalObject&, Value iterable, Value method = {});
|
||||
|
||||
enum class CloseOnAbrupt {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue