Index: src/debug-debugger.js |
diff --git a/src/debug-debugger.js b/src/debug-debugger.js |
index d254ee56965c0e40da77086b172cdba55b3f3a65..7586353a2ea4b2a022af2cee92e39f91d3828f61 100644 |
--- a/src/debug-debugger.js |
+++ b/src/debug-debugger.js |
@@ -677,8 +677,9 @@ Debug.setBreakPointByScriptIdAndPosition = function(script_id, position, |
{ |
break_point = MakeBreakPoint(position); |
break_point.setCondition(condition); |
- if (!enabled) |
+ if (!enabled) { |
break_point.disable(); |
+ } |
var scripts = this.scripts(); |
for (var i = 0; i < scripts.length; i++) { |
if (script_id == scripts[i].id) { |
@@ -960,8 +961,9 @@ ExecutionState.prototype.threadCount = function() { |
ExecutionState.prototype.frame = function(opt_index) { |
// If no index supplied return the selected frame. |
if (opt_index == null) opt_index = this.selected_frame; |
- if (opt_index < 0 || opt_index >= this.frameCount()) |
+ if (opt_index < 0 || opt_index >= this.frameCount()) { |
throw new Error('Illegal frame index.'); |
+ } |
return new FrameMirror(this.break_id, opt_index); |
}; |