Skip to content

Commit ba881f9

Browse files
authored
fix(runtime-core): avoid object prototype keys in property access cache (#2416)
1 parent 7e6e903 commit ba881f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ function setupStatefulComponent(
549549
}
550550
}
551551
// 0. create render proxy property access cache
552-
instance.accessCache = {}
552+
instance.accessCache = Object.create(null)
553553
// 1. create public instance / render proxy
554554
// also mark it raw so it's never observed
555555
instance.proxy = new Proxy(instance.ctx, PublicInstanceProxyHandlers)

0 commit comments

Comments
 (0)