Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 1013a8ae0620dfdd1230f3e446f16b658268892d..495ba4f6c4d0a6ba4af585182011a8aa642002e7 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1455,14 +1455,14 @@ Handle<SharedFunctionInfo> Compiler::GetSharedFunctionInfo( |
literal->expected_property_count()); |
live_edit_tracker.RecordFunctionInfo(result, literal, info.zone()); |
return result; |
- } else { |
- // We may have additional data from compilation now. |
+ } else if (!lazy) { |
+ // We have additional data from compilation now. |
DCHECK(!existing->is_compiled()); |
existing->ReplaceCode(*info.code()); |
existing->set_scope_info(*scope_info); |
existing->set_feedback_vector(*info.feedback_vector()); |
- return existing; |
} |
+ return existing; |
} |