BigIntOrderedMap: fix caching, again

This commit is contained in:
Liam Fitzgerald 2021-05-06 12:48:36 +10:00
parent 61e9deb787
commit 5fe3874b20
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -16,7 +16,7 @@ function sortBigInt(a: BigInteger, b: BigInteger) {
}
export default class BigIntOrderedMap<V> implements Iterable<[BigInteger, V]> {
root: Record<string, V> = {}
cachedIter: [BigInteger, V][] = [];
cachedIter: [BigInteger, V][] = null;
[immerable] = true;
constructor(items: [BigInteger, V][] = []) {