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:
Bobby Holley 2013-02-08 14:24:20 +00:00
parent 70d03d5e68
commit 9069c014a7

View File

@ -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();