[V8] BreakPoint Relocation
authorAurindam Jana <aurindam.jana@nokia.com>
Wed, 14 Mar 2012 10:50:48 +0000 (11:50 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 14 Mar 2012 11:22:57 +0000 (12:22 +0100)
Do not return undefined breakpoint.

This patch should be squashed into --
61fd072c17785c93001ffa9532c61f166e03b385 [V8] Add flag to avoid
breakpoint relocation -- in the next V8 rebase as this code only
improves code in that patch

Change-Id: I83a3867f5052eb308af5c28874a25d51ad475ff7
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
src/3rdparty/v8/src/debug-debugger.js

index 4740480..4e73dcd 100644 (file)
@@ -452,7 +452,7 @@ ScriptBreakPoint.prototype.set = function (script) {
   // Check for any relocation and compare it with the breakpoint_relocation flag
   if (actual_location.line != line && !%AllowBreakPointRelocation()) {
     %ClearBreakPoint(break_point);
-    return break_point;
+    return;
   }
   break_point.actual_location = { line: actual_location.line,
                                   column: actual_location.column,