Index: src/debug/debug-evaluate.cc |
diff --git a/src/debug/debug-evaluate.cc b/src/debug/debug-evaluate.cc |
index 8970520edc3db1d9113579f3999bd49e707851d1..217e473a73db4bc6af87880cc1a20dbed2d02702 100644 |
--- a/src/debug/debug-evaluate.cc |
+++ b/src/debug/debug-evaluate.cc |
@@ -158,8 +158,8 @@ DebugEvaluate::ContextBuilder::ContextBuilder(Isolate* isolate, |
// - Look up in the original context. |
// - Check the whitelist to find out whether to skip contexts during lookup. |
const ScopeIterator::Option option = ScopeIterator::COLLECT_NON_LOCALS; |
- for (ScopeIterator it(isolate, &frame_inspector, option); |
- !it.Failed() && !it.Done(); it.Next()) { |
+ for (ScopeIterator it(isolate, &frame_inspector, option); !it.Done(); |
+ it.Next()) { |
ScopeIterator::ScopeType scope_type = it.Type(); |
if (scope_type == ScopeIterator::ScopeTypeLocal) { |
DCHECK_EQ(FUNCTION_SCOPE, it.CurrentScopeInfo()->scope_type()); |