From 2fba7dff47ca4e179ca5ba351f0f0d76931fb064 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Wed, 19 Nov 2014 13:25:21 +0300 Subject: [PATCH] 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} --- deps/v8/src/debug-debugger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/v8/src/debug-debugger.js b/deps/v8/src/debug-debugger.js index a4c8801ea6d4..f24a14a79c24 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_,