We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c0f770 commit 18f283fCopy full SHA for 18f283f
src/compiler/parser.ts
@@ -1309,7 +1309,7 @@ namespace ts {
1309
case ParsingContext.ObjectBindingElements:
1310
return token() === SyntaxKind.OpenBracketToken || token() === SyntaxKind.DotDotDotToken || isLiteralPropertyName();
1311
case ParsingContext.HeritageClauseElement:
1312
- // If we see { } then only consume it as an expression if it is followed by `,` or `{`
+ // If we see `{ ... }` then only consume it as an expression if it is followed by `,` or `{`
1313
// That way we won't consume the body of a class in its heritage clause.
1314
if (token() === SyntaxKind.OpenBraceToken) {
1315
return lookAhead(isValidHeritageClauseObjectLiteral);
0 commit comments