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

LibJS: Object.getOwnPropertyDescriptor works properly with accessors

This commit is contained in:
Matthew Olsson 2020-05-29 20:10:21 -07:00 committed by Andreas Kling
parent 12fe546be9
commit 4e331a1fcf
3 changed files with 93 additions and 37 deletions

View file

@ -116,6 +116,9 @@ private:
bool put_own_property(Object& this_object, const FlyString& property_name, Value, u8 attributes, PutOwnPropertyMode = PutOwnPropertyMode::Put, bool throw_exceptions = true);
bool put_own_property_by_index(Object& this_object, u32 property_index, Value, u8 attributes, PutOwnPropertyMode = PutOwnPropertyMode::Put, bool throw_exceptions = true);
Value call_native_property_getter(Object* this_object, Value property) const;
void call_native_property_setter(Object* this_object, Value property, Value) const;
void set_shape(Shape&);
void ensure_shape_is_unique();