Index: test/cctest/test-serialize.cc |
diff --git a/test/cctest/test-serialize.cc b/test/cctest/test-serialize.cc |
index 7fa4792fcb5daf99de05ebae55c4f35ecd6cb710..099f3a05a976c7fb059cc95bb22b3b51278599be 100644 |
--- a/test/cctest/test-serialize.cc |
+++ b/test/cctest/test-serialize.cc |
@@ -523,9 +523,9 @@ DEPENDENT_TEST(PartialDeserialization, PartialSerialization) { |
TEST(ContextSerialization) { |
if (!Snapshot::HaveASnapshotToStartFrom()) { |
- v8::V8::Initialize(); |
Isolate* isolate = Isolate::Current(); |
Serializer::Enable(isolate); |
+ v8::V8::Initialize(); |
v8::Isolate* v8_isolate = reinterpret_cast<v8::Isolate*>(isolate); |
Heap* heap = isolate->heap(); |