Index: third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js |
index 58940245aed4180c88b6e1527760689a778080cc..5d44cbaaae179e0577746d4d7f94427c2123d626 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js |
@@ -1339,6 +1339,8 @@ WebInspector.DebuggerModel.Scope = function(callFrame, ordinal) |
this._type = this._payload.type; |
this._name = this._payload.name; |
this._ordinal = ordinal; |
+ this._startLocation = this._payload.startLocation ? WebInspector.DebuggerModel.Location.fromPayload(callFrame.debuggerModel, this._payload.startLocation) : null; |
+ this._endLocation = this._payload.endLocation ? WebInspector.DebuggerModel.Location.fromPayload(callFrame.debuggerModel, this._payload.endLocation) : null; |
} |
WebInspector.DebuggerModel.Scope.prototype = { |
@@ -1359,6 +1361,22 @@ WebInspector.DebuggerModel.Scope.prototype = { |
}, |
/** |
+ * @return {?WebInspector.DebuggerModel.Location} |
+ */ |
+ startLocation: function() |
+ { |
+ return this._startLocation; |
+ }, |
+ |
+ /** |
+ * @return {?WebInspector.DebuggerModel.Location} |
+ */ |
+ endLocation: function() |
+ { |
+ return this._endLocation; |
+ }, |
+ |
+ /** |
* @return {!WebInspector.RemoteObject} |
*/ |
object: function() |
@@ -1373,7 +1391,7 @@ WebInspector.DebuggerModel.Scope.prototype = { |
else |
this._object = runtimeModel.createRemoteObject(this._payload.object); |
- return this._callFrame.target().runtimeModel.createRemoteObject(this._payload.object); |
+ return this._object; |
}, |
/** |