Skip to content

Commit

Permalink
fix(runtime-core): avoid object prototype keys in property access cac…
Browse files Browse the repository at this point in the history
…he (#2416)
  • Loading branch information
LongTengDao authored Oct 19, 2020
1 parent 7e6e903 commit ba881f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ function setupStatefulComponent(
}
}
// 0. create render proxy property access cache
instance.accessCache = {}
instance.accessCache = Object.create(null)
// 1. create public instance / render proxy
// also mark it raw so it's never observed
instance.proxy = new Proxy(instance.ctx, PublicInstanceProxyHandlers)
Expand Down

0 comments on commit ba881f9

Please sign in to comment.