b=477735; fix XPCOMUtils.generateQI to handle null/undef members in array; r=sayrer

This commit is contained in:
Vladimir Vukicevic 2009-02-10 15:10:07 -08:00
parent bc644f3d19
commit 66cf601d96

View File

@ -112,7 +112,7 @@ var XPCOMUtils = {
* param, and if it is, returns |this| (the object it was called on).
*/
generateQI: function(interfaces) {
return makeQI([i.name for each(i in interfaces)]);
return makeQI([i.name for each (i in interfaces) if (i)]);
},
/**