Index: src/serialize.cc |
diff --git a/src/serialize.cc b/src/serialize.cc |
index 9a628aab958859c07ccc4c1d67db2f543f99c99e..8c19d99895d51581f9131cf27041b5c1324c4498 100644 |
--- a/src/serialize.cc |
+++ b/src/serialize.cc |
@@ -1132,11 +1132,8 @@ void StartupSerializer::SerializeStrongReferences() { |
CHECK(isolate->handle_scope_implementer()->blocks()->is_empty()); |
CHECK_EQ(0, isolate->global_handles()->NumberOfWeakHandles()); |
// We don't support serializing installed extensions. |
- for (RegisteredExtension* ext = v8::RegisteredExtension::first_extension(); |
- ext != NULL; |
- ext = ext->next()) { |
- CHECK_NE(v8::INSTALLED, ext->state()); |
- } |
+ CHECK(!isolate->has_installed_extensions()); |
+ |
HEAP->IterateStrongRoots(this, VISIT_ONLY_STRONG); |
} |