Index: src/debug/debug-scopes.cc |
diff --git a/src/debug/debug-scopes.cc b/src/debug/debug-scopes.cc |
index de96034abd8e5dd5b614a7a7470424031454a9bd..0e81498c5d8be7cd2a5d35f36a8a238b4f8eca95 100644 |
--- a/src/debug/debug-scopes.cc |
+++ b/src/debug/debug-scopes.cc |
@@ -61,9 +61,10 @@ ScopeIterator::ScopeIterator(Isolate* isolate, FrameInspector* frame_inspector, |
// inspect the function scope. |
// This can only happen if we set a break point inside right before the |
// return, which requires a debug info to be available. |
+ Handle<DebugInfo> debug_info(shared_info->GetDebugInfo()); |
// Find the break point where execution has stopped. |
- BreakLocation location = BreakLocation::FromFrame(GetFrame()); |
+ BreakLocation location = BreakLocation::FromFrame(debug_info, GetFrame()); |
ignore_nested_scopes = location.IsReturn(); |
} |