fix(runtime-core): avoid the proxy object polluting the slots of the internal instance (#3698)

fix #3695
This commit is contained in:
HcySunYang
2021-05-25 06:17:37 +08:00
committed by GitHub
parent 7c74feb3dc
commit 4ce0df6ef1
2 changed files with 9 additions and 4 deletions

View File

@@ -89,7 +89,8 @@ export function withCtx(
// mark this as a compiled slot function.
// this is used in vnode.ts -> normalizeChildren() to set the slot
// rendering flag.
renderFnWithContext._c = true
// also used to cache the normalized results to avoid repeated normalization
renderFnWithContext._c = renderFnWithContext
if (__COMPAT__ && isNonScopedSlot) {
renderFnWithContext._nonScoped = true
}