Bug 998355. r=jonco

This commit is contained in:
Terrence Cole 2014-04-23 15:39:56 -07:00
parent 011385155d
commit 010e739595

View File

@ -189,10 +189,10 @@ class WeakMap : public HashMap<Key, Value, HashPolicy, RuntimeAllocPolicy>, publ
if (e.front().key() != key)
entryMoved(e, key);
} else if (keyNeedsMark(key)) {
gc::Mark(trc, &e.front().value(), "WeakMap entry value");
gc::Mark(trc, &key, "proxy-preserved WeakMap entry key");
if (e.front().key() != key)
entryMoved(e, key);
gc::Mark(trc, &e.front().value(), "WeakMap entry value");
markedAny = true;
}
key.unsafeSet(nullptr);