提交 f829a7df 编写于 作者: J Johannes Rieken
上级 ac916cbb
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册