From e9d39bd95f3587bb2af058f50ce954d1c99ca416 Mon Sep 17 00:00:00 2001 From: David Souther Date: Mon, 9 May 2022 10:53:58 -0700 Subject: [PATCH] Remove spurious lookAhead, as this fn is already in a lookAhead --- src/compiler/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 35536bb2246..755c583b718 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -4538,7 +4538,7 @@ namespace ts { // isn't actually allowed, but we want to treat it as a lambda so we can provide // a good error message. if (isModifierKind(second) && second !== SyntaxKind.AsyncKeyword && lookAhead(nextTokenIsIdentifier)) { - if (lookAhead(() => nextToken() === SyntaxKind.AsKeyword)) { + if (nextToken() === SyntaxKind.AsKeyword) { // https://github.com/microsoft/TypeScript/issues/44466 return Tristate.False; }