]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
perf(reactivity): should not track `__v_isRef` (#1392)
authorunderfin <2218301630@qq.com>
Thu, 25 Jun 2020 15:40:49 +0000 (23:40 +0800)
committerGitHub <noreply@github.com>
Thu, 25 Jun 2020 15:40:49 +0000 (11:40 -0400)
packages/reactivity/src/baseHandlers.ts

index 3f875abaa53edfb97dbe7529dc6948c8de08e7f8..82e6b98dced036467d9687bc9e25c8af3018f7b4 100644 (file)
@@ -63,7 +63,11 @@ function createGetter(isReadonly = false, shallow = false) {
 
     const res = Reflect.get(target, key, receiver)
 
-    if ((isSymbol(key) && builtInSymbols.has(key)) || key === '__proto__') {
+    if (
+      isSymbol(key)
+        ? builtInSymbols.has(key)
+        : key === `__proto__` || key === `__v_isRef`
+    ) {
       return res
     }