Fix failing assertion in r11782.
authormstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 12 Jun 2012 16:53:15 +0000 (16:53 +0000)
committermstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 12 Jun 2012 16:53:15 +0000 (16:53 +0000)
R=ulan@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10548004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11783 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/debug.cc

index a748b4c..c7a55f4 100644 (file)
@@ -2118,8 +2118,8 @@ bool Debug::EnsureDebugInfo(Handle<SharedFunctionInfo> shared,
     return true;
   }
 
-  // Make sure we are prepared to handle breakpoints.
-  ASSERT(has_break_points_);
+  // There will be at least one break point when we are done.
+  has_break_points_ = true;
 
   // Ensure function is compiled. Return false if this failed.
   if (!function.is_null() &&