summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury Semikhatsky <yurys@chromium.org>2014-11-19 13:25:21 +0300
committerJulien Gilli <julien.gilli@joyent.com>2015-04-29 14:25:49 -0700
commit5b2bf92211278eba3ff1cc954cc42060b75b526f (patch)
tree2cba344cd27379df564fd392bc7470377f12cf23
parent9a960c270c4ca48e05ccc915135845a1e2120e94 (diff)
downloadnode-new-5b2bf92211278eba3ff1cc954cc42060b75b526f.tar.gz
deps: backport use strict fix for V8 debugger
Backport 2ad2237507c5b5f9047b8d94d2f4997327eae852 from V8. 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} Reviewed-By: Trevor Norris <trev.norris@gmail.com> PR-URL: https://github.com/joyent/node/pull/18206
-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 a4c8801ea6..f24a14a79c 100644
--- a/deps/v8/src/debug-debugger.js
+++ b/deps/v8/src/debug-debugger.js
@@ -430,7 +430,7 @@ ScriptBreakPoint.prototype.set = function (script) {
if (IS_NULL(position)) 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,
this.position_alignment_,