Index: third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js |
diff --git a/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js b/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js |
index bc6beda2dea6320935716c2052324354e452c3cf..159b9af753df1e5cac5647e7ae56cb8f9ee327a1 100644 |
--- a/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js |
+++ b/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js |
@@ -1511,7 +1511,7 @@ InjectedScript.CallFrameProxy.prototype = { |
var scopeChain = callFrame.scopeChain; |
var scopeChainProxy = []; |
for (var i = 0; i < scopeChain.length; ++i) |
- scopeChainProxy[i] = InjectedScript.CallFrameProxy._createScopeJson(callFrame.scopeType(i), callFrame.scopeName(i), scopeChain[i], "backtrace"); |
+ scopeChainProxy[i] = InjectedScript.CallFrameProxy._createScopeJson(callFrame.scopeType(i), callFrame.scopeName(i), scopeChain[i], "backtrace", callFrame.scopeStartLocation(i), callFrame.scopeEndLocation(i) ); |
return scopeChainProxy; |
}, |
@@ -1538,9 +1538,11 @@ InjectedScript.CallFrameProxy._scopeTypeNames = { |
* @param {string} scopeName |
* @param {*} scopeObject |
* @param {string} groupId |
+ * @param {?DebuggerAgent.Location=} startLocation |
+ * @param {?DebuggerAgent.Location=} endLocation |
* @return {!DebuggerAgent.Scope} |
*/ |
-InjectedScript.CallFrameProxy._createScopeJson = function(scopeTypeCode, scopeName, scopeObject, groupId) |
+InjectedScript.CallFrameProxy._createScopeJson = function(scopeTypeCode, scopeName, scopeObject, groupId, startLocation, endLocation) |
{ |
var scope = { |
object: injectedScript._wrapObject(scopeObject, groupId), |
@@ -1549,6 +1551,12 @@ InjectedScript.CallFrameProxy._createScopeJson = function(scopeTypeCode, scopeNa |
}; |
if (scopeName) |
scope.name = scopeName; |
+ |
+ if (startLocation) |
+ scope.startLocation = startLocation; |
+ if (endLocation) |
+ scope.endLocation = endLocation; |
+ |
return scope; |
} |