mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix missing parsingContext restore at return in parseDelimitedList (#48999)
This commit is contained in:
1 parent
2ffe6864b1
commit
8d0393d227
11 files changed
+94
No files matched your search
@@ -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>);
|
||||
|
||||
Reference in new issue
Block a user