From f641c4b2289dfdbbbea87538e36fa35f2a115ddc Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 14 Apr 2022 10:00:44 +0800 Subject: [PATCH] fix(runtime-core): fix use of non-existent-in-prod internal property in defineProperty trap fix #5710 --- packages/runtime-core/src/componentPublicInstance.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/componentPublicInstance.ts b/packages/runtime-core/src/componentPublicInstance.ts index 018187fc..03ee0e0e 100644 --- a/packages/runtime-core/src/componentPublicInstance.ts +++ b/packages/runtime-core/src/componentPublicInstance.ts @@ -458,7 +458,7 @@ export const PublicInstanceProxyHandlers: ProxyHandler = { ) { if (descriptor.get != null) { // invalidate key cache of a getter based property #5417 - target.$.accessCache[key] = 0 + target._.accessCache![key] = 0 } else if (hasOwn(descriptor, 'value')) { this.set!(target, key, descriptor.value, null) }