Bug 514073 - [@ XPCIDispatchExtension::Enumerate], r=mrbkap

This commit is contained in:
timeless@mozdev.org 2009-10-26 18:39:24 -07:00
Родитель 4cb500b7bf
Коммит 0ae9246845
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

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