Index: src/debug/debug-evaluate.cc |
diff --git a/src/debug/debug-evaluate.cc b/src/debug/debug-evaluate.cc |
index 01b9b0559c1b9a78ae0eba6dbb0bc130f9aad8f1..263b41be6851291255286f8c35dcba3fecb32256 100644 |
--- a/src/debug/debug-evaluate.cc |
+++ b/src/debug/debug-evaluate.cc |
@@ -183,7 +183,8 @@ DebugEvaluate::ContextBuilder::ContextBuilder(Isolate* isolate, |
context_chain_element.wrapped_context = current_context; |
} |
context_chain_.Add(context_chain_element); |
- } else if (scope_type == ScopeIterator::ScopeTypeBlock) { |
+ } else if (scope_type == ScopeIterator::ScopeTypeBlock || |
+ scope_type == ScopeIterator::ScopeTypeEval) { |
Handle<JSObject> materialized = factory->NewJSObjectWithNullProto(); |
frame_inspector.MaterializeStackLocals(materialized, |
it.CurrentScopeInfo()); |