mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-22 17:29:01 +00:00
LibJS: Expose offset of is_simple_storage
This commit is contained in:
parent
d9aebeb372
commit
32364d66aa
Notes:
sideshowbarker
2024-07-17 07:19:27 +09:00
Author: https://github.com/iliadsh
Commit: 32364d66aa
Pull-request: https://github.com/SerenityOS/serenity/pull/21858
Reviewed-by: https://github.com/awesomekling
1 changed files with 2 additions and 0 deletions
|
@ -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) {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue