mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibJS+LibWeb: Wrap raw JS::Cell*/& fields in GCPtr/NonnullGCPtr
This commit is contained in:
committed by
Andreas Kling
parent
1df3652e27
commit
7c0c1c8f49
@@ -345,8 +345,8 @@ bool validate_and_apply_property_descriptor(Object* object, PropertyKey const& p
|
||||
// i. For each field of Desc, set the corresponding attribute of the property named P of object O to the value of the field.
|
||||
Value value;
|
||||
if (descriptor.is_accessor_descriptor() || (current->is_accessor_descriptor() && !descriptor.is_data_descriptor())) {
|
||||
auto* getter = descriptor.get.value_or(current->get.value_or(nullptr));
|
||||
auto* setter = descriptor.set.value_or(current->set.value_or(nullptr));
|
||||
auto getter = descriptor.get.value_or(current->get.value_or(nullptr));
|
||||
auto setter = descriptor.set.value_or(current->set.value_or(nullptr));
|
||||
value = Accessor::create(object->vm(), getter, setter);
|
||||
} else {
|
||||
value = descriptor.value.value_or(current->value.value_or({}));
|
||||
|
||||
Reference in New Issue
Block a user