From 9bce51f651aad297ef9eb6df832bfdaf1de05d84 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 22 四月 2026 14:27:54 +0800
Subject: [PATCH] 青岛推送

---
 node_modules/webpack/lib/util/TupleQueue.js |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/node_modules/webpack/lib/util/TupleQueue.js b/node_modules/webpack/lib/util/TupleQueue.js
index e446582..bdd61ed 100644
--- a/node_modules/webpack/lib/util/TupleQueue.js
+++ b/node_modules/webpack/lib/util/TupleQueue.js
@@ -8,11 +8,14 @@
 const TupleSet = require("./TupleSet");
 
 /**
+ * FIFO queue for tuples that preserves uniqueness by delegating membership
+ * tracking to `TupleSet`.
  * @template T
  * @template V
  */
 class TupleQueue {
 	/**
+	 * Seeds the queue with an optional iterable of tuples to visit.
 	 * @param {Iterable<[T, V, ...EXPECTED_ANY]>=} items The initial elements.
 	 */
 	constructor(items) {
@@ -29,7 +32,7 @@
 	}
 
 	/**
-	 * Returns the number of elements in this queue.
+	 * Returns the number of distinct tuples currently queued.
 	 * @returns {number} The number of elements in this queue.
 	 */
 	get length() {
@@ -37,7 +40,7 @@
 	}
 
 	/**
-	 * Appends the specified element to this queue.
+	 * Enqueues a tuple if it is not already present in the underlying set.
 	 * @param {[T, V, ...EXPECTED_ANY]} item The element to add.
 	 * @returns {void}
 	 */
@@ -46,7 +49,8 @@
 	}
 
 	/**
-	 * Retrieves and removes the head of this queue.
+	 * Removes and returns the next queued tuple, rebuilding the iterator when
+	 * the underlying tuple set has changed since the last full pass.
 	 * @returns {[T, V, ...EXPECTED_ANY] | undefined} The head of the queue of `undefined` if this queue is empty.
 	 */
 	dequeue() {

--
Gitblit v1.9.3