Fix bug in scanner

This commit is contained in:
Anders Hejlsberg 2016-10-12 14:12:47 -07:00
parent 7497d81eec
commit 4c581def93

View File

@ -1190,7 +1190,7 @@ namespace ts {
}
function scanBinaryOrOctalDigits(base: number): number {
Debug.assert(base !== 2 || base !== 8, "Expected either base 2 or base 8");
Debug.assert(base === 2 || base === 8, "Expected either base 2 or base 8");
let value = 0;
// For counting number of digits; Valid binaryIntegerLiteral must have at least one binary digit following B or b.