1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:17:35 +00:00

LibJS: Add the IteratorStep abstract iterator operation

As well as add 2 missing exception checks in the IteratorComplete and
IteratorValue abstract iterator operations.
This commit is contained in:
Idan Horowitz 2021-07-04 01:33:37 +03:00 committed by Linus Groh
parent ba4d367dea
commit 5ee1ae37b2
2 changed files with 30 additions and 2 deletions

View file

@ -20,6 +20,7 @@ enum class IteratorHint {
Object* get_iterator(GlobalObject&, Value value, IteratorHint hint = IteratorHint::Sync, Value method = {});
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);
void iterator_close(Object& iterator);