Skip to content

Commit a7b1e49

Browse files
committed
fix(testris): release the reference to the previous value before next emission
1 parent 6b70cdf commit a7b1e49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/internal/util/tetris.ts

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export class Tetris<T extends any> {
1818
}
1919
for (let column = 0; column < this.columns; column++) {
2020
if (this._hasNewIn(column)) {
21+
delete this.arrays[column][this.lastEmissionIndices[column]];
2122
this.lastEmissionIndices[column] += 1;
2223
}
2324
next.push(this.arrays[column][this.lastEmissionIndices[column]]);

0 commit comments

Comments
 (0)