Reviewers: Yury Semikhatsky, Description: 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 Please review this at http://codereview.chromium.org/135001 SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/mirror-delay.js Index: src/mirror-delay.js =================================================================== --- src/mirror-delay.js (revision 2217) +++ src/mirror-delay.js (working copy) @@ -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 -~----------~----~----~----~------~----~------~--~---
