Index: Source/WebCore/inspector/front-end/ScriptsPanel.js |
=================================================================== |
--- Source/WebCore/inspector/front-end/ScriptsPanel.js (revision 98581) |
+++ Source/WebCore/inspector/front-end/ScriptsPanel.js (working copy) |
@@ -467,7 +467,8 @@ |
callback(WebInspector.RemoteObject.fromPayload(result), wasThrown); |
} |
var selectedCallFrame = this._presentationModel.selectedCallFrame; |
- selectedCallFrame.evaluate(code, objectGroup, includeCommandLineAPI, returnByValue, didEvaluate.bind(this)); |
+ if (selectedCallFrame) |
+ selectedCallFrame.evaluate(code, objectGroup, includeCommandLineAPI, returnByValue, didEvaluate.bind(this)); |
}, |
getSelectedCallFrameVariables: function(callback) |