1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 16:47:45 +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:
Ali Mohammad Pur 2022-02-09 16:34:52 +03:30 committed by Linus Groh
parent e7dea10381
commit 4a73ec07c5
8 changed files with 153 additions and 19 deletions

View file

@ -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;
};
}