Minor cleanup of baseIsEqual.

This commit is contained in:
John-David Dalton
2014-09-17 21:28:15 -07:00
parent 0350443810
commit d13f8749d4

View File

@@ -1931,11 +1931,9 @@
}
if (!valHasCtor) {
// non `Object` object instances with different constructors are not equal
if (valCtor != othCtor &&
!(typeof valCtor == 'function' && valCtor instanceof valCtor &&
typeof othCtor == 'function' && othCtor instanceof othCtor) &&
('constructor' in value && 'constructor' in other)
) {
if (valCtor != othCtor && ('constructor' in value && 'constructor' in other) &&
!(typeof valCtor == 'function' && valCtor instanceof valCtor &&
typeof othCtor == 'function' && othCtor instanceof othCtor)) {
return false;
}
}