refactor(reactivity): remove keyIsSymbol (#2262)

This commit is contained in:
edison 2020-10-14 04:17:52 +08:00 committed by GitHub
parent 9b34f915ab
commit af1f5d33aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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