mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +00:00
LibJS: Add Object::has_property()
Like Object::has_own_property() but going down the prototype chain.
This commit is contained in:
parent
4cdd802927
commit
62671bea68
2 changed files with 13 additions and 0 deletions
|
@ -96,7 +96,9 @@ public:
|
|||
void set_prototype(Object*);
|
||||
bool has_prototype(const Object* prototype) const;
|
||||
|
||||
bool has_property(const FlyString& property_name) const;
|
||||
bool has_own_property(const FlyString& property_name) const;
|
||||
|
||||
enum class PreferredType {
|
||||
Default,
|
||||
String,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue