Fix a let body not closing properly during parsing

This commit is contained in:
Sam Vervaeck 2022-08-31 13:46:18 +02:00
parent 2d880f0f0d
commit 3381a2bd5d

View file

@ -491,6 +491,7 @@ export class Parser {
for (;;) {
const t4 = this.peekToken();
if (t4.kind === SyntaxKind.BlockEnd) {
this.getToken();
break;
}
elements.push(this.parseLetBodyElement());