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:
parent
ba4d367dea
commit
5ee1ae37b2
2 changed files with 30 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue