Cleanup symbolTag case in equalByTag.

This commit is contained in:
John-David Dalton
2016-02-23 09:57:10 -08:00
parent 80b5731709
commit 9c162624fe

View File

@@ -4798,7 +4798,9 @@
return equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask | UNORDERED_COMPARE_FLAG, stack);
case symbolTag:
return !!symbolValueOf && (symbolValueOf.call(object) == symbolValueOf.call(other));
if (symbolValueOf) {
return symbolValueOf.call(object) == symbolValueOf.call(other);
}
}
return false;
}