mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-17 01:49:41 -05:00
Use Debug.fail to avoid a call.
This commit is contained in:
@@ -2104,7 +2104,7 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean
|
||||
return token = scanNumber();
|
||||
}
|
||||
|
||||
Debug.assert(tokenInfo & TokenInfo.RecognizedMisc);
|
||||
if (!(tokenInfo & TokenInfo.RecognizedMisc)) Debug.fail(`Unhandled token category ${tokenInfo}`);
|
||||
switch (ch) {
|
||||
case CharacterCodes.exclamation:
|
||||
if (charCodeUnchecked(pos + 1) === CharacterCodes.equals) {
|
||||
|
||||
Reference in New Issue
Block a user