Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 39a199424b56b406accd3a1cce97a884a53333ca..2d4a87941cb2e790da375693ca2dcfa19572b829 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -453,6 +453,9 @@ static Handle<SharedFunctionInfo> MakeFunctionInfo(CompilationInfo* info) { |
// the instances of the function. |
SetExpectedNofPropertiesFromEstimate(result, lit->expected_property_count()); |
+ script->set_compilation_state( |
+ Smi::FromInt(Script::COMPILATION_STATE_COMPILED)); |
+ |
#ifdef ENABLE_DEBUGGER_SUPPORT |
// Notify debugger |
isolate->debugger()->OnAfterCompile( |