Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 06c54a9bc00dde300d3f53c1b9752264a7ac507a..005a5f8d5f75036bc06a824e2a5ac6985fca01e4 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -3155,7 +3155,7 @@ bool Heap::CreateInitialObjects() { |
set_empty_slow_element_dictionary(SeededNumberDictionary::cast(obj)); |
// Handling of script id generation is in Factory::NewScript. |
- set_last_script_id(undefined_value()); |
+ set_last_script_id(Smi::FromInt(v8::Script::kNoScriptId)); |
// Initialize keyed lookup cache. |
isolate_->keyed_lookup_cache()->Clear(); |