Skip to content

Commit 6156ade

Browse files
committed
Make parameter required
1 parent b59f2b6 commit 6156ade

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/checker.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -21322,7 +21322,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
2132221322
resetMaybeStack(/*markAllAsSucceeded*/ true);
2132321323
}
2132421324
else {
21325-
resetMaybeStack();
21325+
resetMaybeStack(/*markAllAsSucceeded*/ false);
2132621326
}
2132721327
}
2132821328
// Note: it's intentional that we don't reset in the else case;
@@ -21333,11 +21333,11 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
2133321333
// A false result goes straight into global cache (when something is false under
2133421334
// assumptions it will also be false without assumptions)
2133521335
relation.set(id, (reportErrors ? RelationComparisonResult.Reported : 0) | RelationComparisonResult.Failed | propagatingVarianceFlags);
21336-
resetMaybeStack();
21336+
resetMaybeStack(/*markAllAsSucceeded*/ false);
2133721337
}
2133821338
return result;
2133921339

21340-
function resetMaybeStack(markAllAsSucceeded = false) {
21340+
function resetMaybeStack(markAllAsSucceeded: boolean) {
2134121341
for (let i = maybeStart; i < maybeCount; i++) {
2134221342
maybeKeysSet.delete(maybeKeys[i]);
2134321343
if (markAllAsSucceeded) {

0 commit comments

Comments
 (0)