Skip to content

Commit c1380aa

Browse files
committed
Remove isExpressionNode assertion
1 parent 8fb9251 commit c1380aa

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

src/compiler/checker.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6127,7 +6127,6 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
61276127
},
61286128
isOptionalParameter,
61296129
isUndefinedIdentifierExpression(node: Identifier) {
6130-
Debug.assert(isExpressionNode(node));
61316130
return getSymbolAtLocation(node) === undefinedSymbol;
61326131
},
61336132
isEntityNameVisible(context, entityName, shouldComputeAliasToMakeVisible) {

src/compiler/utilities.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3647,7 +3647,6 @@ export function isInExpressionContext(node: Node): boolean {
36473647
case SyntaxKind.SwitchStatement:
36483648
case SyntaxKind.CaseClause:
36493649
case SyntaxKind.ThrowStatement:
3650-
case SyntaxKind.ExportAssignment:
36513650
return (parent as ExpressionStatement).expression === node;
36523651
case SyntaxKind.ForStatement:
36533652
const forStatement = parent as ForStatement;

0 commit comments

Comments
 (0)