diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 5de28b69de9..48eb40461cb 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -795,7 +795,7 @@ module ts { } else { error(parsingContextErrors(kind)); - if (token !== SyntaxKind.CommaToken && isInSomeParsingContext()) { + if (isInSomeParsingContext()) { break; } nextToken();