@@ -2397,9 +2397,6 @@ module ts {
23972397 else {
23982398 parseExpected ( SyntaxKind . OpenParenToken ) ;
23992399 }
2400- // It is an error to have a trailing comma in an argument list. However, the checker
2401- // needs evidence of a trailing comma in order to give good results for signature help.
2402- // That is why we do not allow a trailing comma, but we "preserve" a trailing comma.
24032400 callExpr . arguments = parseDelimitedList ( ParsingContext . ArgumentExpressions ,
24042401 parseArgumentExpression , /*allowTrailingComma*/ false ) ;
24052402 parseExpected ( SyntaxKind . CloseParenToken ) ;
@@ -2627,9 +2624,6 @@ module ts {
26272624 parseExpected ( SyntaxKind . NewKeyword ) ;
26282625 node . func = parseCallAndAccess ( parsePrimaryExpression ( ) , /* inNewExpression */ true ) ;
26292626 if ( parseOptional ( SyntaxKind . OpenParenToken ) || token === SyntaxKind . LessThanToken && ( node . typeArguments = tryParse ( parseTypeArgumentsAndOpenParen ) ) ) {
2630- // It is an error to have a trailing comma in an argument list. However, the checker
2631- // needs evidence of a trailing comma in order to give good results for signature help.
2632- // That is why we do not allow a trailing comma, but we "preserve" a trailing comma.
26332627 node . arguments = parseDelimitedList ( ParsingContext . ArgumentExpressions ,
26342628 parseArgumentExpression , /*allowTrailingComma*/ false ) ;
26352629 parseExpected ( SyntaxKind . CloseParenToken ) ;
0 commit comments