Reviewers: Yury Semikhatsky,

Description:
Don't process debug requests if the debug event is script collected.

Please review this at http://codereview.chromium.org/113900

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
   M     src/debug.cc


Index: src/debug.cc
===================================================================
--- src/debug.cc        (revision 2050)
+++ src/debug.cc        (working copy)
@@ -2034,7 +2034,12 @@
          Handle<JSObject>::cast(event_data));
      InvokeMessageHandler(message);
    }
-  if (auto_continue && !HasCommands()) {
+
+  // If auto continue don't make the event cause a break, but process  
messages
+  // in the queue if any. For script collected events don't even process
+  // messages in the queue as the execution state might not be what is  
expected
+  // by the client.
+  if (auto_continue && !HasCommands() || event == v8::ScriptCollected) {
      return;
    }




--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to