mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibJS: Use OrderedHashMap instead of HashMap in the Map built-in
This ensures insertion-order iteration.
This commit is contained in:
parent
f1f00be691
commit
a27fbfd45f
Notes:
sideshowbarker
2024-07-18 12:12:53 +09:00
Author: https://github.com/IdanHo
Commit: a27fbfd45f
Pull-request: https://github.com/SerenityOS/serenity/pull/8076
Reviewed-by: https://github.com/linusg ✅
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue