Chromium Code Reviews| Index: src/serialize.cc |
| diff --git a/src/serialize.cc b/src/serialize.cc |
| index 7dab02f18dadcf03b5640f6c40b6f60de9b831e7..4b28d23fe9ac060f73c46c84fb5076739c99a7f5 100644 |
| --- a/src/serialize.cc |
| +++ b/src/serialize.cc |
| @@ -1338,6 +1338,7 @@ void StartupSerializer::SerializeObject( |
| int skip) { |
| CHECK(o->IsHeapObject()); |
| HeapObject* heap_object = HeapObject::cast(o); |
| + DCHECK(!heap_object->IsJSFunction()); |
| int root_index; |
| if ((root_index = RootIndex(heap_object, how_to_code)) != kInvalidRootIndex) { |