зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
70d03d5e68
Коммит
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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче