chore: fix ownKeys signature (#3313)

This commit is contained in:
Cédric Exbrayat 2021-03-03 17:26:49 +01:00 committed by GitHub
parent 3e4c3ac66d
commit 57e1aa815b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -182,7 +182,7 @@ function has(target: object, key: string | symbol): boolean {
return result return result
} }
function ownKeys(target: object): (string | number | symbol)[] { function ownKeys(target: object): (string | symbol)[] {
track(target, TrackOpTypes.ITERATE, isArray(target) ? 'length' : ITERATE_KEY) track(target, TrackOpTypes.ITERATE, isArray(target) ? 'length' : ITERATE_KEY)
return Reflect.ownKeys(target) return Reflect.ownKeys(target)
} }