mirror of https://github.com/vuejs/core.git
refactor(reactivity): hasOwnProperty add this parameter (#7233)
hasOwnProperty adds this parameter and delete @ts-ignore
This commit is contained in:
parent
cd7c887b75
commit
13dc28aeff
|
@ -85,8 +85,7 @@ function createArrayInstrumentations() {
|
|||
return instrumentations
|
||||
}
|
||||
|
||||
function hasOwnProperty(key: string) {
|
||||
// @ts-ignore
|
||||
function hasOwnProperty(this: object, key: string) {
|
||||
const obj = toRaw(this)
|
||||
track(obj, TrackOpTypes.HAS, key)
|
||||
return obj.hasOwnProperty(key)
|
||||
|
|
Loading…
Reference in New Issue