mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:57:35 +00:00
LibJS: Convert Object::set() to ThrowCompletionOr
This commit is contained in:
parent
b7e5f08e56
commit
1d45541278
18 changed files with 89 additions and 188 deletions
|
@ -71,7 +71,7 @@ static void set_iterator_record_complete(GlobalObject& global_object, Object& it
|
|||
// 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);
|
||||
iterator_record.set(vm.names.done, Value(true), Object::ShouldThrowExceptions::No);
|
||||
MUST(iterator_record.set(vm.names.done, Value(true), Object::ShouldThrowExceptions::No));
|
||||
}
|
||||
|
||||
using EndOfElementsCallback = Function<Value(PromiseValueList&)>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue