summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Gilli <julien.gilli@joyent.com>2014-11-28 15:33:35 -0800
committerTimothy J Fontaine <tjfontaine@gmail.com>2014-12-17 11:47:26 -0800
commit0ff51c6e063e3eea9e4d9ea68edc82d935626fc7 (patch)
tree4777c51aa09fd10e9a36c3a7493956a5e179668e
parentbddea12026800b76fee58416fadb867a8b54c837 (diff)
downloadnode-0ff51c6e063e3eea9e4d9ea68edc82d935626fc7.tar.gz
deps: backport 2ad2237 from v8 upstream
Original commit message: 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 R=yangguo@chromium.org Review URL: https://codereview.chromium.org/741683002 Cr-Commit-Position: refs/heads/master@{#25415}
-rw-r--r--deps/v8/src/debug-debugger.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/v8/src/debug-debugger.js b/deps/v8/src/debug-debugger.js
index dfad902d7..a27961fa4 100644
--- a/deps/v8/src/debug-debugger.js
+++ b/deps/v8/src/debug-debugger.js
@@ -442,7 +442,7 @@ ScriptBreakPoint.prototype.set = function (script) {
if (position === null) return;
// Create a break point object and set the break point.
- break_point = MakeBreakPoint(position, this);
+ var break_point = MakeBreakPoint(position, this);
break_point.setIgnoreCount(this.ignoreCount());
var actual_position = %SetScriptBreakPoint(script, position, break_point);
if (IS_UNDEFINED(actual_position)) {