Commit 1867e84e authored by yurys@google.com's avatar yurys@google.com

DevTools: provisional support for scopes of type 'Catch' introduced in v8 by...

DevTools: provisional support for scopes of type 'Catch' introduced in v8 by http://codereview.chromium.org/202005

BUG=17229
Review URL: http://codereview.chromium.org/200039

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25613 0039d316-1c4b-4281-b951-d872f2087c98
parent 5b711531
...@@ -112,7 +112,8 @@ devtools.DebuggerAgent.ScopeType = { ...@@ -112,7 +112,8 @@ devtools.DebuggerAgent.ScopeType = {
Global: 0, Global: 0,
Local: 1, Local: 1,
With: 2, With: 2,
Closure: 3 Closure: 3,
Catch: 4
}; };
...@@ -1047,6 +1048,9 @@ devtools.DebuggerAgent.prototype.formatCallFrame_ = function(stackFrame) { ...@@ -1047,6 +1048,9 @@ devtools.DebuggerAgent.prototype.formatCallFrame_ = function(stackFrame) {
devtools.DebuggerAgent.formatObjectProxy_(stackFrame.receiver); devtools.DebuggerAgent.formatObjectProxy_(stackFrame.receiver);
break; break;
case ScopeType.With: case ScopeType.With:
// Catch scope is treated as a regular with scope by WebKit so we
// also treat it this way.
case ScopeType.Catch:
scopeObjectProxy.isWithBlock = true; scopeObjectProxy.isWithBlock = true;
break; break;
case ScopeType.Closure: case ScopeType.Closure:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment