mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
b=477735; fix XPCOMUtils.generateQI to handle null/undef members in array; r=sayrer
This commit is contained in:
parent
bc644f3d19
commit
66cf601d96
@ -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)]);
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user