зеркало из https://github.com/mozilla/pjs.git
Bug 514073 - [@ XPCIDispatchExtension::Enumerate], r=mrbkap
This commit is contained in:
Родитель
4cb500b7bf
Коммит
0ae9246845
|
@ -130,7 +130,11 @@ JSBool XPCIDispatchExtension::Enumerate(XPCCallContext& ccx, JSObject* obj,
|
||||||
if(!tearoff)
|
if(!tearoff)
|
||||||
return JS_FALSE;
|
return JS_FALSE;
|
||||||
|
|
||||||
|
if(!tearoff->IsIDispatch())
|
||||||
|
return JS_FALSE;
|
||||||
|
|
||||||
XPCDispInterface* pInfo = tearoff->GetIDispatchInfo();
|
XPCDispInterface* pInfo = tearoff->GetIDispatchInfo();
|
||||||
|
|
||||||
PRUint32 members = pInfo->GetMemberCount();
|
PRUint32 members = pInfo->GetMemberCount();
|
||||||
// Iterate over the members and force the properties to be resolved
|
// Iterate over the members and force the properties to be resolved
|
||||||
for(PRUint32 index = 0; index < members; ++index)
|
for(PRUint32 index = 0; index < members; ++index)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче