Skip to content

Commit

Permalink
refactor(reactivity): hasOwnProperty add this parameter (vuejs#7233)
Browse files Browse the repository at this point in the history
hasOwnProperty adds this parameter and delete @ts-ignore
  • Loading branch information
wsypower committed Jan 9, 2023
1 parent cd7c887 commit 13dc28a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/reactivity/src/baseHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 13dc28a

Please sign in to comment.