Skip to content

Commit

Permalink
Make parameter required
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Aug 3, 2023
1 parent b59f2b6 commit 6156ade
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21322,7 +21322,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
resetMaybeStack(/*markAllAsSucceeded*/ true);
}
else {
resetMaybeStack();
resetMaybeStack(/*markAllAsSucceeded*/ false);
}
}
// Note: it's intentional that we don't reset in the else case;
Expand All @@ -21333,11 +21333,11 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
// A false result goes straight into global cache (when something is false under
// assumptions it will also be false without assumptions)
relation.set(id, (reportErrors ? RelationComparisonResult.Reported : 0) | RelationComparisonResult.Failed | propagatingVarianceFlags);
resetMaybeStack();
resetMaybeStack(/*markAllAsSucceeded*/ false);
}
return result;

function resetMaybeStack(markAllAsSucceeded = false) {
function resetMaybeStack(markAllAsSucceeded: boolean) {
for (let i = maybeStart; i < maybeCount; i++) {
maybeKeysSet.delete(maybeKeys[i]);
if (markAllAsSucceeded) {
Expand Down

0 comments on commit 6156ade

Please sign in to comment.