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:
parent
b7e5f08e56
commit
1d45541278
Notes:
sideshowbarker
2024-07-18 03:07:37 +09:00
Author: https://github.com/linusg
Commit: 1d45541278
Pull-request: https://github.com/SerenityOS/serenity/pull/10327
Reviewed-by: https://github.com/IdanHo ✅
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