mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:37:34 +00:00
LibJS: Convert IteratorComplete AO to ThrowCompletionOr
This commit is contained in:
parent
8be1caa05d
commit
a64752cd34
4 changed files with 15 additions and 13 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue