Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 57bfbbc5c7e5c07d38e53f6e297c8a21b2b12014..ea8c5884d0e11935a872b8c1b2a912bb98cfcb48 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -2870,6 +2870,7 @@ void Heap::CreateInitialObjects() { |
// Handling of script id generation is in Heap::NextScriptId(). |
set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); |
+ set_next_template_serial_number(Smi::FromInt(0)); |
// Allocate the empty script. |
Handle<Script> script = factory->NewScript(factory->empty_string()); |