1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:07:35 +00:00

LibJS: Use OrderedHashTable instead of HashTable in the Set built-in

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

View file

@ -33,7 +33,7 @@ private:
Set& m_set;
bool m_done { false };
Object::PropertyKind m_iteration_kind;
HashTable<Value, ValueTraits>::Iterator m_iterator;
OrderedHashTable<Value, ValueTraits>::Iterator m_iterator;
};
}