mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 16:37:31 +09:00
Implement the spec provision for handling repeated keys in records by updating the existing value
This commit is contained in:
parent
8547419267
commit
5755645f0d
2 changed files with 46 additions and 9 deletions
|
|
@ -77,4 +77,15 @@ private:
|
|||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
||||
template<typename K, typename V>
|
||||
class nsDefaultComparator<mozilla::dom::binding_detail::RecordEntry<K, V>, K>
|
||||
{
|
||||
public:
|
||||
bool Equals(const mozilla::dom::binding_detail::RecordEntry<K, V>& aEntry,
|
||||
const K& aKey) const
|
||||
{
|
||||
return aEntry.mKey == aKey;
|
||||
}
|
||||
};
|
||||
|
||||
#endif // mozilla_dom_Record_h
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue