Browse Source

LibJS: Expose offset of is_simple_storage

iliadsh 1 year ago
parent
commit
32364d66aa
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Userland/Libraries/LibJS/Runtime/IndexedProperties.h

+ 2 - 0
Userland/Libraries/LibJS/Runtime/IndexedProperties.h

@@ -46,6 +46,8 @@ public:
 
 
     bool is_simple_storage() const { return m_is_simple_storage; }
     bool is_simple_storage() const { return m_is_simple_storage; }
 
 
+    static FlatPtr is_simple_storage_offset() { return OFFSET_OF(IndexedPropertyStorage, m_is_simple_storage); }
+
 protected:
 protected:
     explicit IndexedPropertyStorage(IsSimpleStorage is_simple_storage)
     explicit IndexedPropertyStorage(IsSimpleStorage is_simple_storage)
         : m_is_simple_storage(is_simple_storage == IsSimpleStorage::Yes) {};
         : m_is_simple_storage(is_simple_storage == IsSimpleStorage::Yes) {};