We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38e0eff commit 19536edCopy full SHA for 19536ed
src/util/OrmUtils.ts
@@ -390,7 +390,11 @@ export class OrmUtils {
390
// At last checking prototypes as good as we can
391
if (!(typeof x === "object" && typeof y === "object")) return false
392
393
- if (x.isPrototypeOf(y) || y.isPrototypeOf(x)) return false
+ if (
394
+ Object.prototype.isPrototypeOf.call(x, y) ||
395
+ Object.prototype.isPrototypeOf.call(y, x)
396
+ )
397
+ return false
398
399
if (x.constructor !== y.constructor) return false
400
0 commit comments