]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
refactor(reactivity): remove `keyIsSymbol` (#2262)
authoredison <daiwei521@126.com>
Tue, 13 Oct 2020 20:17:52 +0000 (04:17 +0800)
committerGitHub <noreply@github.com>
Tue, 13 Oct 2020 20:17:52 +0000 (16:17 -0400)
packages/reactivity/src/baseHandlers.ts

index 703c5a6e84ff9a4149a34e626c10ff41984fe0d2..3d5ee55f6216ebc2d3dc824465772fd3fb615fc5 100644 (file)
@@ -89,9 +89,8 @@ function createGetter(isReadonly = false, shallow = false) {
 
     const res = Reflect.get(target, key, receiver)
 
-    const keyIsSymbol = isSymbol(key)
     if (
-      keyIsSymbol
+      isSymbol(key)
         ? builtInSymbols.has(key as symbol)
         : key === `__proto__` || key === `__v_isRef`
     ) {