Bug 1255223 - Null crash when logging weak maps. r=mccr8, a=ritu

This commit is contained in:
Peter Van der Beken 2016-03-04 23:11:37 +01:00
parent ada7c8830d
commit 94fe31b1ee

View File

@ -2470,8 +2470,9 @@ CCGraphBuilder::NoteWeakMapping(JSObject* aMap, JS::GCCellPtr aKey,
mapping->mVal = aVal ? AddWeakMapNode(aVal) : nullptr;
if (mLogger) {
mLogger->NoteWeakMapEntry((uint64_t)aMap, aKey.unsafeAsInteger(),
(uint64_t)aKdelegate, aVal.unsafeAsInteger());
mLogger->NoteWeakMapEntry((uint64_t)aMap, aKey ? aKey.unsafeAsInteger() : 0,
(uint64_t)aKdelegate,
aVal ? aVal.unsafeAsInteger() : 0);
}
}