Skip to content

Commit 4c581de

Browse files
committed
Fix bug in scanner
1 parent 7497d81 commit 4c581de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/scanner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ namespace ts {
11901190
}
11911191

11921192
function scanBinaryOrOctalDigits(base: number): number {
1193-
Debug.assert(base !== 2 || base !== 8, "Expected either base 2 or base 8");
1193+
Debug.assert(base === 2 || base === 8, "Expected either base 2 or base 8");
11941194

11951195
let value = 0;
11961196
// For counting number of digits; Valid binaryIntegerLiteral must have at least one binary digit following B or b.

0 commit comments

Comments
 (0)