From 5278e0622a1e217b4f7cb2049fb107954368087d Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 5 May 2021 09:47:14 -0400 Subject: [PATCH] wip: more private properties --- packages/runtime-core/src/compat/instance.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/runtime-core/src/compat/instance.ts b/packages/runtime-core/src/compat/instance.ts index 1f3ad8e6..01c360b4 100644 --- a/packages/runtime-core/src/compat/instance.ts +++ b/packages/runtime-core/src/compat/instance.ts @@ -130,13 +130,15 @@ export function installCompatInstanceProperties(map: PublicPropertiesMap) { return res }, - // internal data access... (vuex uses this) + // some private properties that are likely accessed... + _self: i => i.proxy, + _uid: i => i.uid, _data: i => i.data, + _isMounted: i => i.isMounted, + _isDestroyed: i => i.isUnmounted, // v2 render helpers $createElement: () => compatH, - _self: i => i.proxy, - _uid: i => i.uid, _c: () => compatH, _o: () => legacyMarkOnce, _n: () => toNumber,