提交 7e2f7fd8 编写于 作者: A Andre Weinand

check breakpoint validity; fixes #42478

上级 229f81b8
......@@ -1603,6 +1603,9 @@ export class SourceBreakpoint extends Breakpoint {
constructor(location: Location, enabled?: boolean, condition?: string, hitCondition?: string) {
super(enabled, condition, hitCondition);
if (location === null) {
throw illegalArgument('location');
}
this.location = location;
}
}
......@@ -1612,6 +1615,9 @@ export class FunctionBreakpoint extends Breakpoint {
constructor(functionName: string, enabled?: boolean, condition?: string, hitCondition?: string) {
super(enabled, condition, hitCondition);
if (!functionName) {
throw illegalArgument('functionName');
}
this.functionName = functionName;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册