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 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2218 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
da49c0f8a2
commit
531a6db569
@ -2051,7 +2051,10 @@ JSONProtocolSerializer.prototype.serialize_ = function(mirror, reference,
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user