|
|
7131f4d |
From 0ff51c6e063e3eea9e4d9ea68edc82d935626fc7 Mon Sep 17 00:00:00 2001
|
|
|
7131f4d |
From: Julien Gilli <julien.gilli@joyent.com>
|
|
|
7131f4d |
Date: Fri, 28 Nov 2014 15:33:35 -0800
|
|
|
7131f4d |
Subject: [PATCH] deps: backport 2ad2237 from v8 upstream
|
|
|
7131f4d |
|
|
|
7131f4d |
Original commit message:
|
|
|
7131f4d |
|
|
|
7131f4d |
Fix Unhandled ReferenceError in debug-debugger.js
|
|
|
7131f4d |
|
|
|
7131f4d |
This fixes following exception in Sky on attempt to set a breakpoint
|
|
|
7131f4d |
"Unhandled: Uncaught ReferenceError: break_point is not defined"
|
|
|
7131f4d |
I think this happens in Sky but not in Chrome because Sky scripts are executed in strict mode.
|
|
|
7131f4d |
|
|
|
7131f4d |
BUG=None
|
|
|
7131f4d |
LOG=N
|
|
|
7131f4d |
R=yangguo@chromium.org
|
|
|
7131f4d |
|
|
|
7131f4d |
Review URL: https://codereview.chromium.org/741683002
|
|
|
7131f4d |
|
|
|
7131f4d |
Cr-Commit-Position: refs/heads/master@{#25415}
|
|
|
7131f4d |
---
|
|
|
7131f4d |
src/debug-debugger.js | 2 +-
|
|
|
7131f4d |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
7131f4d |
|
|
|
7131f4d |
diff --git a/src/debug-debugger.js b/src/debug-debugger.js
|
|
|
7131f4d |
index dfad902..a27961f 100644
|
|
|
7131f4d |
--- a/src/debug-debugger.js
|
|
|
7131f4d |
+++ b/src/debug-debugger.js
|
|
|
7131f4d |
@@ -442,7 +442,7 @@ ScriptBreakPoint.prototype.set = function (script) {
|
|
|
7131f4d |
if (position === null) return;
|
|
|
7131f4d |
|
|
|
7131f4d |
// Create a break point object and set the break point.
|
|
|
7131f4d |
- break_point = MakeBreakPoint(position, this);
|
|
|
7131f4d |
+ var break_point = MakeBreakPoint(position, this);
|
|
|
7131f4d |
break_point.setIgnoreCount(this.ignoreCount());
|
|
|
7131f4d |
var actual_position = %SetScriptBreakPoint(script, position, break_point);
|
|
|
7131f4d |
if (IS_UNDEFINED(actual_position)) {
|