Index: Source/devtools/front_end/RemoteObject.js |
diff --git a/Source/devtools/front_end/RemoteObject.js b/Source/devtools/front_end/RemoteObject.js |
index 92cd90b3233e9a6d5a7171ea45ddd2cb82a5bd24..2a5420e3ebfe94f7c1e37ee4c2dd74ea854e0fe8 100644 |
--- a/Source/devtools/front_end/RemoteObject.js |
+++ b/Source/devtools/front_end/RemoteObject.js |
@@ -106,11 +106,19 @@ WebInspector.RemoteObject.prototype = { |
}, |
/** |
- * @return {?WebInspector.Target} |
+ * @return {!WebInspector.Target} |
*/ |
target: function() |
{ |
- return null; |
+ throw new Error("Target-less object"); |
+ }, |
+ |
+ /** |
+ * @param {function(?DebuggerAgent.FunctionDetails)} callback |
+ */ |
+ functionDetails: function(callback) |
+ { |
+ callback(null); |
} |
} |
@@ -494,13 +502,21 @@ WebInspector.RemoteObjectImpl.prototype = { |
}, |
/** |
- * @return {?WebInspector.Target} |
+ * @return {!WebInspector.Target} |
*/ |
target: function() |
{ |
return this._target; |
}, |
+ /** |
+ * @param {function(?DebuggerAgent.FunctionDetails)} callback |
+ */ |
+ functionDetails: function(callback) |
+ { |
+ this._target.debuggerModel.functionDetails(this, callback) |
+ }, |
+ |
__proto__: WebInspector.RemoteObject.prototype |
}; |