WXL
3 天以前 9bce51f651aad297ef9eb6df832bfdaf1de05d84
node_modules/webpack/lib/util/SortableSet.js
@@ -47,6 +47,7 @@
   }
   /**
    * Returns itself.
    * @param {T} value value to add to set
    * @returns {this} returns itself
    */
@@ -59,6 +60,7 @@
   }
   /**
    * Returns true if value existed in set, false otherwise.
    * @param {T} value value to delete
    * @returns {boolean} true if value existed in set, false otherwise
    */
@@ -69,6 +71,7 @@
   }
   /**
    * Describes how this clear operation behaves.
    * @returns {void}
    */
   clear() {
@@ -88,6 +91,7 @@
         return;
      }
      /** @type {T[]} */
      const sortedArray = [...this].sort(sortFn);
      super.clear();
      for (let i = 0; i < sortedArray.length; i += 1) {
@@ -145,6 +149,7 @@
   }
   /**
    * Invalidates the cached state associated with this value.
    * @private
    * @returns {void}
    */
@@ -155,6 +160,7 @@
   }
   /**
    * Invalidate ordered cache.
    * @private
    * @returns {void}
    */
@@ -165,6 +171,7 @@
   }
   /**
    * Returns the raw array.
    * @returns {T[]} the raw array
    */
   toJSON() {