mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
d9a73ac04a
commit
d82e69a6ff
@ -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