From c64e9a0121c5fe72cb0702d59b57cee251b57d5c Mon Sep 17 00:00:00 2001 From: Michael Sweeney Date: Fri, 11 Oct 2024 22:50:16 -0700 Subject: [PATCH] replaced this.data.length with this.nextIndex --- src/vanilla/utils/proxyMap-indexMap.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vanilla/utils/proxyMap-indexMap.ts b/src/vanilla/utils/proxyMap-indexMap.ts index 624ae984..09d7c54a 100644 --- a/src/vanilla/utils/proxyMap-indexMap.ts +++ b/src/vanilla/utils/proxyMap-indexMap.ts @@ -40,7 +40,7 @@ export function proxyMap(entries?: Iterable<[K, V]> | undefined | null) { const k = maybeProxify(key) if (!indexMap.has(k) && !isProxy(this)) { // eslint-disable-next-line @typescript-eslint/no-unused-expressions - this.data.length + this.nextIndex } if (indexMap.has(k)) { const index = indexMap.get(k)! @@ -54,7 +54,7 @@ export function proxyMap(entries?: Iterable<[K, V]> | undefined | null) { const k = maybeProxify(key) if (!indexMap.has(k) && !isProxy(this)) { // eslint-disable-next-line @typescript-eslint/no-unused-expressions - this.data.length + this.nextIndex } return indexMap.has(k) },