Skip to content

Commit 13dc28a

Browse files
authored
refactor(reactivity): hasOwnProperty add this parameter (#7233)
hasOwnProperty adds this parameter and delete @ts-ignore
1 parent cd7c887 commit 13dc28a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/reactivity/src/baseHandlers.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ function createArrayInstrumentations() {
8585
return instrumentations
8686
}
8787

88-
function hasOwnProperty(key: string) {
89-
// @ts-ignore
88+
function hasOwnProperty(this: object, key: string) {
9089
const obj = toRaw(this)
9190
track(obj, TrackOpTypes.HAS, key)
9291
return obj.hasOwnProperty(key)

0 commit comments

Comments
 (0)