1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:47:34 +00:00

LibJS: Use OrderedHashMap instead of HashMap in the Map built-in

This ensures insertion-order iteration.
This commit is contained in:
Idan Horowitz 2021-06-16 00:00:26 +03:00 committed by Linus Groh
parent f1f00be691
commit a27fbfd45f
2 changed files with 4 additions and 4 deletions

View file

@ -33,7 +33,7 @@ private:
Map& m_map;
bool m_done { false };
Object::PropertyKind m_iteration_kind;
HashMap<Value, Value, ValueTraits>::IteratorType m_iterator;
OrderedHashMap<Value, Value, ValueTraits>::IteratorType m_iterator;
};
}