Skip to content

Commit 2ad2237

Browse files
committed
Fix Unhandled ReferenceError in debug-debugger.js
This fixes following exception in Sky on attempt to set a breakpoint "Unhandled: Uncaught ReferenceError: break_point is not defined" I think this happens in Sky but not in Chrome because Sky scripts are executed in strict mode. BUG=None LOG=N [email protected] Review URL: https://codereview.chromium.org/741683002 Cr-Commit-Position: refs/heads/master@{#25415}
1 parent b317639 commit 2ad2237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/debug-debugger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ ScriptBreakPoint.prototype.set = function (script) {
432432
if (IS_NULL(position)) return;
433433

434434
// Create a break point object and set the break point.
435-
break_point = MakeBreakPoint(position, this);
435+
var break_point = MakeBreakPoint(position, this);
436436
break_point.setIgnoreCount(this.ignoreCount());
437437
var actual_position = %SetScriptBreakPoint(script, position,
438438
this.position_alignment_,

0 commit comments

Comments
 (0)