diff --git a/src/utils/isPrototypeAccess.ts b/src/utils/isPrototypeAccess.ts index 9c61281..3db1695 100644 --- a/src/utils/isPrototypeAccess.ts +++ b/src/utils/isPrototypeAccess.ts @@ -1,5 +1,5 @@ export function isPrototypeAccess(context: object, target: object): boolean { return context === target || (context.constructor !== target.constructor - && Object.getPrototypeOf(this).constructor === target.constructor); + && Object.getPrototypeOf(context).constructor === target.constructor); }