This commit is contained in:
Johannes Rieken
2021-02-16 09:45:37 +01:00
parent ac916cbb2d
commit f829a7dfd7
+7 -6
View File
@@ -2863,12 +2863,13 @@ export class NotebookCellRange {
}
constructor(start: number, end: number) {
if (start < 0) {
throw illegalArgument('start must be positive');
}
if (end < start) {
throw illegalArgument('end cannot be smaller than start');
}
// todo@rebornix
// if (start < 0) {
// throw illegalArgument('start must be positive');
// }
// if (end < start) {
// throw illegalArgument('end cannot be smaller than start');
// }
this._start = start;
this._end = end;
}