Merge pull request #26794 from samlanning/fix-equalownproperties

Housekeeping: Fix equalOwnProperties
This commit is contained in:
Ryan Cavanaugh authored and GitHub committed 2018-08-31 13:58:25 -07:00
commit cbdfc01e25
3 files changed
+35 -1

No files matched your search

+1 -1
View File
@@ -1272,7 +1272,7 @@ namespace ts {
if (!left || !right) return false;
for (const key in left) {
if (hasOwnProperty.call(left, key)) {
if (!hasOwnProperty.call(right, key) === undefined) return false;
if (!hasOwnProperty.call(right, key)) return false;
if (!equalityComparer(left[key], right[key])) return false;
}
}