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

This commit is contained in:
timeless@mozdev.org 2009-10-26 18:39:24 -07:00
parent 5077192f39
commit db8a0cafd4

View File

@ -130,7 +130,11 @@ JSBool XPCIDispatchExtension::Enumerate(XPCCallContext& ccx, JSObject* obj,
if(!tearoff)
return JS_FALSE;
if(!tearoff->IsIDispatch())
return JS_FALSE;
XPCDispInterface* pInfo = tearoff->GetIDispatchInfo();
PRUint32 members = pInfo->GetMemberCount();
// Iterate over the members and force the properties to be resolved
for(PRUint32 index = 0; index < members; ++index)