diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2022-02-09 16:34:52 +0330 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-02-09 20:57:41 +0000 |
commit | 4a73ec07c53326c6ae9f8e90f551c1c9bce7d736 (patch) | |
tree | 97fedaf9ee7423ab4b0ce89d27cbfefd5220c379 /Userland/Libraries/LibJS/Runtime/MapIterator.h | |
parent | e7dea10381578628e492fa2d6dc6b77e9821f306 (diff) | |
download | serenity-4a73ec07c53326c6ae9f8e90f551c1c9bce7d736.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/MapIterator.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/MapIterator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/MapIterator.h b/Userland/Libraries/LibJS/Runtime/MapIterator.h index 52ba4d4c8a..af8a55e252 100644 --- a/Userland/Libraries/LibJS/Runtime/MapIterator.h +++ b/Userland/Libraries/LibJS/Runtime/MapIterator.h @@ -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; }; } |