1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +00:00

LibJS: Convert IteratorComplete AO to ThrowCompletionOr

This commit is contained in:
Timothy Flynn 2021-10-20 09:00:37 -04:00 committed by Linus Groh
parent 8be1caa05d
commit a64752cd34
4 changed files with 15 additions and 13 deletions

View file

@ -72,7 +72,7 @@ static bool iterator_record_is_complete(GlobalObject& global_object, Object& ite
// FIXME: Create a native iterator structure with the [[Done]] internal slot. For now, temporarily clear
// the exception so we can access the "done" property on the iterator object.
TemporaryClearException clear_exception(vm);
return iterator_complete(global_object, iterator_record);
return MUST(iterator_complete(global_object, iterator_record));
}
static void set_iterator_record_complete(GlobalObject& global_object, Object& iterator_record)