Skip to content

Commit 23843ff

Browse files
committed
Parse OmittedExpression for missing arguments followed by commas
1 parent a897104 commit 23843ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ module ts {
10731073
case ParsingContext.TypeParameters:
10741074
return isIdentifier();
10751075
case ParsingContext.ArgumentExpressions:
1076-
return isExpression();
1076+
return token === SyntaxKind.CommaToken || isExpression();
10771077
case ParsingContext.ArrayLiteralMembers:
10781078
return token === SyntaxKind.CommaToken || isExpression();
10791079
case ParsingContext.Parameters:

0 commit comments

Comments
 (0)