Fix missing parsingContext restore at return in parseDelimitedList (#48999)

This commit is contained in:
Jake Bailey
2022-05-06 13:36:27 -07:00
committed by GitHub
parent 2ffe6864b1
commit 8d0393d227
11 changed files with 94 additions and 0 deletions
+1
View File
@@ -2745,6 +2745,7 @@ namespace ts {
const startPos = scanner.getStartPos();
const result = parseListElement(kind, parseElement);
if (!result) {
parsingContext = saveParsingContext;
return undefined;
}
list.push(result as NonNullable<T>);