From 32364d66aa6478741cd6e6f320c5ba14ba5932ef Mon Sep 17 00:00:00 2001 From: iliadsh Date: Thu, 9 Nov 2023 08:38:18 +0000 Subject: [PATCH] LibJS: Expose offset of is_simple_storage --- Userland/Libraries/LibJS/Runtime/IndexedProperties.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibJS/Runtime/IndexedProperties.h b/Userland/Libraries/LibJS/Runtime/IndexedProperties.h index 2aa3abaf781..5dd1a8e3c4e 100644 --- a/Userland/Libraries/LibJS/Runtime/IndexedProperties.h +++ b/Userland/Libraries/LibJS/Runtime/IndexedProperties.h @@ -46,6 +46,8 @@ public: 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: explicit IndexedPropertyStorage(IsSimpleStorage is_simple_storage) : m_is_simple_storage(is_simple_storage == IsSimpleStorage::Yes) {};