mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
LibJS: Add ObjectPrototype and implement hasOwnProperty()
All Objects will now have ObjectPrototype as their prototype, unless overridden.
This commit is contained in:
@@ -89,6 +89,7 @@ public:
|
||||
}
|
||||
|
||||
Object* string_prototype() { return m_string_prototype; }
|
||||
Object* object_prototype() { return m_object_prototype; }
|
||||
|
||||
private:
|
||||
Heap m_heap;
|
||||
@@ -98,6 +99,7 @@ private:
|
||||
|
||||
Object* m_global_object { nullptr };
|
||||
Object* m_string_prototype { nullptr };
|
||||
Object* m_object_prototype { nullptr };
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user