Index: Source/devtools/front_end/ObjectPropertiesSection.js |
diff --git a/Source/devtools/front_end/ObjectPropertiesSection.js b/Source/devtools/front_end/ObjectPropertiesSection.js |
index fef5a8bde733595981d6043c1e5f585750d3f294..c4e6404633e9a318fce170f0944f3792ce728151 100644 |
--- a/Source/devtools/front_end/ObjectPropertiesSection.js |
+++ b/Source/devtools/front_end/ObjectPropertiesSection.js |
@@ -604,16 +604,13 @@ WebInspector.FunctionScopeMainTreeElement.prototype = { |
return; |
/** |
- * @param {?Protocol.Error} error |
- * @param {!DebuggerAgent.FunctionDetails} response |
+ * @param {?DebuggerAgent.FunctionDetails} response |
* @this {WebInspector.FunctionScopeMainTreeElement} |
*/ |
- function didGetDetails(error, response) |
+ function didGetDetails(response) |
{ |
- if (error) { |
- console.error(error); |
+ if (!response) |
return; |
- } |
this.removeChildren(); |
var scopeChain = response.scopeChain; |
@@ -665,7 +662,7 @@ WebInspector.FunctionScopeMainTreeElement.prototype = { |
} |
} |
- DebuggerAgent.getFunctionDetails(this._remoteObject.objectId, didGetDetails.bind(this)); |
+ this._remoteObject.functionDetails(didGetDetails.bind(this)); |
}, |
__proto__: TreeElement.prototype |