summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/devtools/js/debugger_agent.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/webkit/glue/devtools/js/debugger_agent.js b/webkit/glue/devtools/js/debugger_agent.js
index 421e023..1d566eb 100644
--- a/webkit/glue/devtools/js/debugger_agent.js
+++ b/webkit/glue/devtools/js/debugger_agent.js
@@ -112,7 +112,8 @@ devtools.DebuggerAgent.ScopeType = {
Global: 0,
Local: 1,
With: 2,
- Closure: 3
+ Closure: 3,
+ Catch: 4
};
@@ -1047,6 +1048,9 @@ devtools.DebuggerAgent.prototype.formatCallFrame_ = function(stackFrame) {
devtools.DebuggerAgent.formatObjectProxy_(stackFrame.receiver);
break;
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;
break;
case ScopeType.Closure: