Bug 1489760 - Explicitly mark calItemBase.getParameterEnumerator as an nsISimpleEnumerator. rs=bustage-fix,jorgk
authorGeoff Lankow <geoff@darktrojan.net>
Sun, 09 Sep 2018 15:02:22 +1200
changeset 24686 86dfca32fb5640120c0df1939e36484e781909ba
parent 24685 f3be60013adcfc2e2743421dc9c0c62cbaf62f4f
child 24687 2adc6fc14903dfd2e46bdfaf2aeeda44045c455d
push id14853
push usermozilla@jorgk.com
push dateSun, 09 Sep 2018 09:51:14 +0000
treeherdercomm-central@2adc6fc14903 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage-fix, jorgk
bugs1489760
Bug 1489760 - Explicitly mark calItemBase.getParameterEnumerator as an nsISimpleEnumerator. rs=bustage-fix,jorgk
calendar/base/src/calItemBase.js
--- a/calendar/base/src/calItemBase.js
+++ b/calendar/base/src/calItemBase.js
@@ -460,17 +460,19 @@ calItemBase.prototype = {
 
             getNext: function() {
                 let paramName = this.mParamNames.pop();
                 return { // nsIProperty
                     QueryInterface: ChromeUtils.generateQI([Ci.nsIProperty]),
                     name: paramName,
                     value: parameters[paramName]
                 };
-            }
+            },
+
+            QueryInterface: ChromeUtils.generateQI([Ci.nsISimpleEnumerator]),
         };
     },
 
     // void getAttendees(out PRUint32 count,
     //                   [array,size_is(count),retval] out calIAttendee attendees);
     getAttendees: function(countObj) {
         if (!this.mAttendees && this.mIsProxy) {
             this.mAttendees = this.mParentItem.getAttendees(countObj);