fix(runtime-core): fix use of non-existent-in-prod internal property in defineProperty trap

fix #5710
This commit is contained in:
Evan You 2022-04-14 10:00:44 +08:00
parent 1f14f19439
commit f641c4b228

View File

@ -458,7 +458,7 @@ export const PublicInstanceProxyHandlers: ProxyHandler<any> = {
) { ) {
if (descriptor.get != null) { if (descriptor.get != null) {
// invalidate key cache of a getter based property #5417 // invalidate key cache of a getter based property #5417
target.$.accessCache[key] = 0 target._.accessCache![key] = 0
} else if (hasOwn(descriptor, 'value')) { } else if (hasOwn(descriptor, 'value')) {
this.set!(target, key, descriptor.value, null) this.set!(target, key, descriptor.value, null)
} }