diff options
Diffstat (limited to 'Libraries/LibJS/Runtime/GlobalObject.h')
-rw-r--r-- | Libraries/LibJS/Runtime/GlobalObject.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Libraries/LibJS/Runtime/GlobalObject.h b/Libraries/LibJS/Runtime/GlobalObject.h index 2f349dd86e..52ca09a3a0 100644 --- a/Libraries/LibJS/Runtime/GlobalObject.h +++ b/Libraries/LibJS/Runtime/GlobalObject.h @@ -37,6 +37,8 @@ public: virtual ~GlobalObject() override; + Shape* empty_object_shape() { return m_empty_object_shape; } + #define __JS_ENUMERATE(ClassName, snake_name, PrototypeName, ConstructorName) \ ConstructorName* snake_name##_constructor() { return m_##snake_name##_constructor; } \ Object* snake_name##_prototype() { return m_##snake_name##_prototype; } @@ -55,6 +57,8 @@ private: template<typename ConstructorType> void add_constructor(const FlyString& property_name, ConstructorType*&, Object& prototype); + Shape* m_empty_object_shape { nullptr }; + #define __JS_ENUMERATE(ClassName, snake_name, PrototypeName, ConstructorName) \ ConstructorName* m_##snake_name##_constructor { nullptr }; \ Object* m_##snake_name##_prototype { nullptr }; |