Merge pull request #26794 from samlanning/fix-equalownproperties

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

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;
}
}