Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 15ded01e7b46204e28945ca7fd60122a57a7fae9..e6063f3e0bb04e6fd2cd835bc58304f2904a9dcd 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -382,6 +382,8 @@ Handle<Script> Factory::NewScript(Handle<String> source) { |
script->set_context_data(heap->undefined_value()); |
script->set_type(Smi::FromInt(Script::TYPE_NORMAL)); |
script->set_compilation_type(Smi::FromInt(Script::COMPILATION_TYPE_HOST)); |
+ script->set_compilation_state( |
+ Smi::FromInt(Script::COMPILATION_STATE_INITIAL)); |
script->set_wrapper(*wrapper); |
script->set_line_ends(heap->undefined_value()); |
script->set_eval_from_shared(heap->undefined_value()); |