chore: typo (#928)

This commit is contained in:
ysj16 2020-04-06 21:09:44 +08:00 committed by GitHub
parent efa8569b8f
commit 667e42065d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,7 @@ function set(this: MapTypes, key: unknown, value: unknown) {
key = toRaw(key) key = toRaw(key)
hadKey = has.call(target, key) hadKey = has.call(target, key)
} else if (__DEV__) { } else if (__DEV__) {
checkIdentitiyKeys(target, has, key) checkIdentityKeys(target, has, key)
} }
const oldValue = get.call(target, key) const oldValue = get.call(target, key)
@ -105,7 +105,7 @@ function deleteEntry(this: CollectionTypes, key: unknown) {
key = toRaw(key) key = toRaw(key)
hadKey = has.call(target, key) hadKey = has.call(target, key)
} else if (__DEV__) { } else if (__DEV__) {
checkIdentitiyKeys(target, has, key) checkIdentityKeys(target, has, key)
} }
const oldValue = get ? get.call(target, key) : undefined const oldValue = get ? get.call(target, key) : undefined
@ -274,7 +274,7 @@ export const readonlyCollectionHandlers: ProxyHandler<CollectionTypes> = {
get: createInstrumentationGetter(readonlyInstrumentations) get: createInstrumentationGetter(readonlyInstrumentations)
} }
function checkIdentitiyKeys( function checkIdentityKeys(
target: CollectionTypes, target: CollectionTypes,
has: (key: unknown) => boolean, has: (key: unknown) => boolean,
key: unknown key: unknown