1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00

LibJS: Convert Object::set() to ThrowCompletionOr

This commit is contained in:
Linus Groh 2021-10-03 00:32:43 +01:00
parent b7e5f08e56
commit 1d45541278
Notes: sideshowbarker 2024-07-18 03:07:37 +09:00
18 changed files with 89 additions and 188 deletions

View file

@ -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&)>;