]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(runtime-core): fix use of non-existent-in-prod internal property in definePropert...
authorEvan You <yyx990803@gmail.com>
Thu, 14 Apr 2022 02:00:44 +0000 (10:00 +0800)
committerEvan You <yyx990803@gmail.com>
Thu, 14 Apr 2022 02:00:53 +0000 (10:00 +0800)
fix #5710

packages/runtime-core/src/componentPublicInstance.ts

index 018187fc64276868d9cf0acfe902ca040f72024a..03ee0e0e9a8fd211bb6dbc6d3dc5768b2769469a 100644 (file)
@@ -458,7 +458,7 @@ export const PublicInstanceProxyHandlers: ProxyHandler<any> = {
   ) {
     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)
     }