fix(45987): fix pasring invalid names (#45994)

This commit is contained in:
Oleksandr T
2021-09-22 00:02:58 +03:00
committed by GitHub
parent 252620b956
commit 9b3ba871fb
6 changed files with 189 additions and 1 deletions

View File

@@ -1639,7 +1639,7 @@ namespace ts {
parseErrorAtCurrentToken(blankDiagnostic);
}
else {
parseErrorAtCurrentToken(nameDiagnostic, tokenToString(token()));
parseErrorAtCurrentToken(nameDiagnostic, scanner.getTokenValue());
}
}