mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 821850 - Remove bogus comment/check and replace with an assert. r=bz
This confused me, because fields are, in fact, exposed via the prototype via the complicated two-step solution defined in InstallField. As it turns out, CompilePrototypeMembers throws if mClassObject ends up null.
This commit is contained in:
parent
70d03d5e68
commit
9069c014a7
@ -107,8 +107,7 @@ nsXBLProtoImpl::InitTargetObjects(nsXBLPrototypeBinding* aBinding,
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
if (!mClassObject)
|
||||
return NS_OK; // This can be ok, if all we've got are fields (and no methods/properties).
|
||||
MOZ_ASSERT(mClassObject);
|
||||
}
|
||||
|
||||
nsIDocument *ownerDoc = aBoundElement->OwnerDoc();
|
||||
|
Loading…
Reference in New Issue
Block a user