Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index db11ebb390dc5cc6bfbf08e51958cc2cff5a83e7..a8bd0bf8e8667291e3a1da1a6c28402d86e7873c 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -848,6 +848,7 @@ Handle<Script> Factory::NewScript(Handle<String> source) { |
script->set_shared_function_infos(Smi::FromInt(0)); |
script->set_flags(Smi::FromInt(0)); |
+ heap->set_script_list(*WeakFixedArray::Add(script_list(), script)); |
return script; |
} |