import from UXP: No issue - Don't assign non-live hash table entry. (6aa3331b)

This commit is contained in:
2026-02-26 09:30:09 +08:00
parent ead39bac02
commit 39e62d7cb3
+1 -1
View File
@@ -831,7 +831,7 @@ class HashTableEntry
if (other->isLive()) {
mozilla::Swap(*mem.addr(), *other->mem.addr());
} else {
*other->mem.addr() = mozilla::Move(*mem.addr());
new (mozilla::KnownNotNull, other->mem.addr()) NonConstT(mozilla::Move(*mem.addr()));
destroy();
}
mozilla::Swap(keyHash, other->keyHash);