diff --git a/src/parser.ts b/src/parser.ts index a4a092b27..5fa7fd066 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -491,6 +491,7 @@ export class Parser { for (;;) { const t4 = this.peekToken(); if (t4.kind === SyntaxKind.BlockEnd) { + this.getToken(); break; } elements.push(this.parseLetBodyElement());