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 5d28edc commit 7303afbCopy full SHA for 7303afb
lib/internal/priority_queue.js
@@ -2,6 +2,7 @@
2
3
const {
4
Array,
5
+ ArrayPrototypeIndexOf,
6
Symbol,
7
} = primordials;
8
@@ -106,7 +107,7 @@ module.exports = class PriorityQueue {
106
107
108
remove(value) {
109
const heap = this[kHeap];
- const pos = heap.indexOf(value);
110
+ const pos = ArrayPrototypeIndexOf(heap, value);
111
if (pos < 1)
112
return false;
113
0 commit comments