diff --git a/lodash.src.js b/lodash.src.js index b89ca643a..dca4b71d1 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -3886,7 +3886,7 @@ if (objLength != othLength && !isLoose) { return false; } - var hasCtor, + var skipCtor = isLoose, index = -1; while (++index < objLength) { @@ -3911,9 +3911,9 @@ if (!result) { return false; } - hasCtor || (hasCtor = key == 'constructor'); + skipCtor || (skipCtor = key == 'constructor'); } - if (!hasCtor && !isLoose) { + if (!skipCtor) { var objCtor = object.constructor, othCtor = other.constructor;