Skip to content

Commit

Permalink
fix(runtime-core): fix use of non-existent-in-prod internal property …
Browse files Browse the repository at this point in the history
…in defineProperty trap

fix #5710
  • Loading branch information
yyx990803 committed Apr 14, 2022
1 parent 1f14f19 commit f641c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/componentPublicInstance.ts
Expand Up @@ -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)
}
Expand Down

0 comments on commit f641c4b

Please sign in to comment.