Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(722)

Unified Diff: webkit/glue/devtools/js/debugger_agent.js

Issue 200039: DevTools: provisional support for scopes of type 'Catch' (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/devtools/js/debugger_agent.js
===================================================================
--- webkit/glue/devtools/js/debugger_agent.js (revision 25611)
+++ webkit/glue/devtools/js/debugger_agent.js (working copy)
@@ -112,7 +112,8 @@
Global: 0,
Local: 1,
With: 2,
- Closure: 3
+ Closure: 3,
+ Catch: 4
};
@@ -1047,6 +1048,9 @@
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:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698