diff --git a/src/utils/proxyInner.ts b/src/utils/proxyInner.ts index 90576d1b0..0e1be40ed 100644 --- a/src/utils/proxyInner.ts +++ b/src/utils/proxyInner.ts @@ -115,7 +115,7 @@ export function proxyInner( // Avoid binding toString if the inner value is null. // This can happen if we are setting the inner value as another instance of proxyInner, which will cause that proxy to instantly evaluate and throw an error - if (typeof innerValue === "function" && innerValue[SYM_PROXY_INNER_VALUE] != null) { + if (typeof innerValue === "function" && (innerValue[SYM_PROXY_INNER_GET] == null || innerValue[SYM_PROXY_INNER_VALUE] != null)) { proxy.toString = innerValue.toString.bind(innerValue); } }