fix assertion condition

This commit is contained in:
Ben Lichtman
2019-10-18 09:18:16 -07:00
parent fcdd5bd782
commit 65561a89dd

View File

@@ -500,7 +500,7 @@ namespace ts {
function pushClassification(start: number, end: number, type: ClassificationType): void {
const length = end - start;
Debug.assert(length >= 0, `Classification had non-positive length of ${length}`);
Debug.assert(length > 0, `Classification had non-positive length of ${length}`);
spans.push(start);
spans.push(length);
spans.push(type);