Skip to content

Commit 269f5ba

Browse files
committed
PR feedback
1 parent 109a3f0 commit 269f5ba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/compiler/checker.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19705,14 +19705,14 @@ namespace ts {
1970519705
function getTypeFactsOfTypes(types: Type[], isUnion: boolean): TypeFacts {
1970619706
let result: TypeFacts = TypeFacts.None;
1970719707
for (const t of types) {
19708-
const facts = getTypeFacts(t);
19709-
result |= facts;
19708+
result |= getTypeFacts(t);
1971019709
}
1971119710
if (!isUnion) {
19712-
// Get the set of postive facts for the intersection by masking with the negative set shifted left, then shift those present positive facts into the negative fact
19713-
// value range, and unset any of those bits (by negating that mask and then intersecting it with the original value)
19714-
const positiveFacts = result & (TypeFacts.NegativeTypeofFacts << 7);
19715-
result &= ~(positiveFacts >> 7);
19711+
// Get the set of positive facts for the intersection by masking with the negative set shifted left,
19712+
// then shift those present positive facts into the negative fact value range, and unset any of those
19713+
// bits (by negating that mask and then intersecting it with the original value)
19714+
const positiveFacts = result & (TypeFacts.NegativeTypeofFacts >> 8);
19715+
result &= ~(positiveFacts << 8);
1971619716
}
1971719717
return result;
1971819718
}

0 commit comments

Comments
 (0)