We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bfc0e2 commit 9661783Copy full SHA for 9661783
1 file changed
src/queue.ts
@@ -56,7 +56,7 @@ export class Queue<T> {
56
57
clear() {
58
for (let i = 0; i < this._size; i++) {
59
- this.buffer[(this.head + i) % this._size] = undefined
+ this.buffer[(this.head + i) % this.buffer.length] = undefined
60
}
61
62
this.head = 0
0 commit comments