Author: [email protected]
Date: Thu Jun 18 07:04:04 2009
New Revision: 2218

Modified:
    branches/bleeding_edge/src/mirror-delay.js

Log:
Fixed exception in debugger scripts request.

When collecting the result for a scripts request check that scripts  
compiled through eval actually have a script for the function they where  
eval'ed in before adding that informaiton to the response.

BUG=http://crbug.com/14388
TEST=none

Review URL: http://codereview.chromium.org/135001

Modified: branches/bleeding_edge/src/mirror-delay.js
==============================================================================
--- branches/bleeding_edge/src/mirror-delay.js  (original)
+++ branches/bleeding_edge/src/mirror-delay.js  Thu Jun 18 07:04:04 2009
@@ -2051,7 +2051,10 @@
        content.sourceLength = mirror.source().length;
        content.scriptType = mirror.scriptType();
        content.compilationType = mirror.compilationType();
-      if (mirror.compilationType() == 1) {  // Compilation type eval.
+      // For compilation type eval emit information on the script from  
which
+      // eval was called if a script is present.
+      if (mirror.compilationType() == 1 &&
+          mirror.evalFromFunction().script()) {
          content.evalFromScript =
              this.serializeReference(mirror.evalFromFunction().script());
          var evalFromLocation = mirror.evalFromLocation()

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

Reply via email to