mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00:00
LibJS: Convert Object::create() to NonnullGCPtr
This commit is contained in:
parent
f990095728
commit
ddc6e139a6
45 changed files with 80 additions and 80 deletions
|
@ -71,7 +71,7 @@ Value from_property_descriptor(VM& vm, Optional<PropertyDescriptor> const& prope
|
|||
|
||||
if (!property_descriptor.has_value())
|
||||
return js_undefined();
|
||||
auto* object = Object::create(realm, realm.intrinsics().object_prototype());
|
||||
auto object = Object::create(realm, realm.intrinsics().object_prototype());
|
||||
if (property_descriptor->value.has_value())
|
||||
MUST(object->create_data_property_or_throw(vm.names.value, *property_descriptor->value));
|
||||
if (property_descriptor->writable.has_value())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue