Index: src/debug/debug-scopes.cc |
diff --git a/src/debug/debug-scopes.cc b/src/debug/debug-scopes.cc |
index 62b78b472833e8fe996a00b771a4378f07716363..b9204f60500c71cea9dd687ddd2f7cffce62d29c 100644 |
--- a/src/debug/debug-scopes.cc |
+++ b/src/debug/debug-scopes.cc |
@@ -97,14 +97,14 @@ ScopeIterator::ScopeIterator(Isolate* isolate, FrameInspector* frame_inspector, |
info.set_context(Handle<Context>(function->context())); |
} |
if (Parser::ParseStatic(&info) && Scope::Analyze(&info)) { |
- scope = info.function()->scope(); |
+ scope = info.literal()->scope(); |
} |
RetrieveScopeChain(scope, shared_info); |
} else { |
// Function code |
ParseInfo info(&zone, function); |
if (Parser::ParseStatic(&info) && Scope::Analyze(&info)) { |
- scope = info.function()->scope(); |
+ scope = info.literal()->scope(); |
} |
RetrieveScopeChain(scope, shared_info); |
} |