mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 16:46:08 +00:00
LibJS: Make Map iterators independent of the underlying hashmap
This implements ordered maps as a pair of an RBTree for key order, and an underlying unordered hash map for storage. Fixes (part of) #11004.
This commit is contained in:
parent
e7dea10381
commit
4a73ec07c5
Notes:
sideshowbarker
2024-07-17 19:05:42 +09:00
Author: https://github.com/alimpfard
Commit: 4a73ec07c5
Pull-request: https://github.com/SerenityOS/serenity/pull/12383
Issue: https://github.com/SerenityOS/serenity/issues/11004
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/IdanHo
Reviewed-by: https://github.com/davidot ✅
Reviewed-by: https://github.com/linusg
8 changed files with 153 additions and 19 deletions
|
@ -33,7 +33,7 @@ private:
|
|||
Map& m_map;
|
||||
bool m_done { false };
|
||||
Object::PropertyKind m_iteration_kind;
|
||||
OrderedHashMap<Value, Value, ValueTraits>::IteratorType m_iterator;
|
||||
Map::ConstIterator m_iterator;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue