Explorar el Código

refactor(reactivity): remove `keyIsSymbol` (#2262)

edison hace 5 años
padre
commit
af1f5d33aa
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      packages/reactivity/src/baseHandlers.ts

+ 1 - 2
packages/reactivity/src/baseHandlers.ts

@@ -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`
     ) {