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

Unified Diff: runtime/vm/scopes.cc

Issue 9961012: Fix debugger crashes (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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: runtime/vm/scopes.cc
===================================================================
--- runtime/vm/scopes.cc (revision 6178)
+++ runtime/vm/scopes.cc (working copy)
@@ -206,7 +206,10 @@
void LocalScope::CollectLocalVariables(GrowableArray<LocalVariable*>* vars) {
for (int i = 0; i < this->variables_.length(); i++) {
LocalVariable* var = variables_[i];
- if ((var->owner() == this) && Scanner::IsIdent(var->name())) {
+ // TODO(hausner): Remove the is_captured() condition once the debugger
+ // can handle getting values of captured variables.
+ if (!var->is_captured() && (var->owner() == this) &&
+ Scanner::IsIdent(var->name())) {
vars->Add(this->variables_[i]);
}
}
« 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