We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3c0d7d commit 30d369cCopy full SHA for 30d369c
lib/internal/priority_queue.js
@@ -28,7 +28,7 @@ module.exports = class PriorityQueue {
28
const heap = this.#heap;
29
const pos = ++this.#size;
30
31
- if (pos === heap.length)
+ if (heap.length === pos)
32
heap.length *= 2;
33
34
heap[pos] = value;
0 commit comments