1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:47:44 +00:00

LibJS: Convert create_data_property_or_throw() to ThrowCompletionOr

This commit is contained in:
Linus Groh 2021-10-03 01:18:46 +01:00
parent bb2499cd7a
commit 364dd42fc8
30 changed files with 148 additions and 167 deletions

View file

@ -147,8 +147,8 @@ Object* create_iterator_result_object(GlobalObject& global_object, Value value,
{
auto& vm = global_object.vm();
auto* object = Object::create(global_object, global_object.object_prototype());
object->create_data_property_or_throw(vm.names.value, value);
object->create_data_property_or_throw(vm.names.done, Value(done));
MUST(object->create_data_property_or_throw(vm.names.value, value));
MUST(object->create_data_property_or_throw(vm.names.done, Value(done)));
return object;
}