WXL
4 天以前 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1
node_modules/webpack/lib/cache/mergeEtags.js
@@ -9,6 +9,7 @@
class MergedEtag {
   /**
    * Creates an instance of MergedEtag.
    * @param {Etag} a first
    * @param {Etag} b second
    */
@@ -22,13 +23,16 @@
   }
}
/** @type {WeakMap<Etag, WeakMap<Etag, MergedEtag>>} */
const dualObjectMap = new WeakMap();
/** @type {WeakMap<Etag, WeakMap<Etag, MergedEtag>>} */
const objectStringMap = new WeakMap();
/**
 * Merges the provided values into a single result.
 * @param {Etag} a first
 * @param {Etag} b second
 * @returns {Etag} result
 * @returns {string | MergedEtag} result
 */
const mergeEtags = (a, b) => {
   if (typeof a === "string") {