Index: src/debug/liveedit.cc |
diff --git a/src/debug/liveedit.cc b/src/debug/liveedit.cc |
index afdc9abc366b76bee39b1d30e8d2707e9ab61ffd..5b9432483aec1b5d960817cc27e48d531545111c 100644 |
--- a/src/debug/liveedit.cc |
+++ b/src/debug/liveedit.cc |
@@ -1016,6 +1016,7 @@ void LiveEdit::ReplaceFunctionCode( |
handle(shared_info->GetDebugInfo())); |
} |
shared_info->set_scope_info(new_shared_info->scope_info()); |
+ shared_info->set_outer_scope_info(new_shared_info->outer_scope_info()); |
shared_info->DisableOptimization(kLiveEdit); |
// Update the type feedback vector, if needed. |
Handle<TypeFeedbackMetadata> new_feedback_metadata( |