mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibJS: Convert IteratorComplete AO to ThrowCompletionOr
This commit is contained in:
parent
8be1caa05d
commit
a64752cd34
Notes:
sideshowbarker
2024-07-18 02:07:03 +09:00
Author: https://github.com/trflynn89
Commit: a64752cd34
Pull-request: https://github.com/SerenityOS/serenity/pull/10546
Reviewed-by: https://github.com/IdanHo
Reviewed-by: https://github.com/linusg ✅
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