From 3381a2bd5d760c359874beff6ccf55edb9bd2a70 Mon Sep 17 00:00:00 2001 From: Sam Vervaeck Date: Wed, 31 Aug 2022 13:46:18 +0200 Subject: [PATCH] Fix a let body not closing properly during parsing --- src/parser.ts | 1 + 1 file changed, 1 insertion(+) 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());