浏览代码

LibJS: Expose offset to m_indexed_properties

iliadsh 1 年之前
父节点
当前提交
f91c3e9ac3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Userland/Libraries/LibJS/Runtime/Object.h

+ 1 - 0
Userland/Libraries/LibJS/Runtime/Object.h

@@ -219,6 +219,7 @@ public:
     void set_prototype(Object*);
 
     static FlatPtr may_interfere_with_indexed_property_access_offset() { return OFFSET_OF(Object, m_may_interfere_with_indexed_property_access); }
+    static FlatPtr indexed_properties_offset() { return OFFSET_OF(Object, m_indexed_properties); }
 
 protected:
     enum class GlobalObjectTag { Tag };