From b0e4b3e015a33818df65c32acd51081ff1e7dede Mon Sep 17 00:00:00 2001 From: Michael Sweeney Date: Tue, 15 Oct 2024 16:06:51 -0700 Subject: [PATCH] removed isProxy check on has calls --- src/vanilla/utils/proxyMap.ts | 2 +- src/vanilla/utils/proxySet.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vanilla/utils/proxyMap.ts b/src/vanilla/utils/proxyMap.ts index ac4c58c6..593112ef 100644 --- a/src/vanilla/utils/proxyMap.ts +++ b/src/vanilla/utils/proxyMap.ts @@ -66,7 +66,7 @@ export function proxyMap(entries?: Iterable<[K, V]> | undefined | null) { const map = getMapForThis(this) const k = maybeProxify(key) const exists = map.has(k) - if (!exists && !isProxy(this)) { + if (!exists) { // eslint-disable-next-line @typescript-eslint/no-unused-expressions this.index } diff --git a/src/vanilla/utils/proxySet.ts b/src/vanilla/utils/proxySet.ts index 4b8ce294..ecdddcf7 100644 --- a/src/vanilla/utils/proxySet.ts +++ b/src/vanilla/utils/proxySet.ts @@ -58,7 +58,7 @@ export function proxySet(initialValues?: Iterable | null) { const map = getMapForThis(this) const value = maybeProxify(v) const exists = map.has(value) - if (!exists && !isProxy(this)) { + if (!exists) { // eslint-disable-next-line @typescript-eslint/no-unused-expressions this.index }