Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 3844054c294b9729a065cbb81db9d361dc1bcda4..0f790f5a4eda64cbccadb260279e7f95924d1a98 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -19754,9 +19754,8 @@ UNINITIALIZED_TEST(IsolateEmbedderData) { |
i_isolate->SetData(data2); |
CHECK_EQ(data2, isolate->GetData()); |
CHECK_EQ(data2, i_isolate->GetData()); |
- i_isolate->TearDown(); |
- CHECK_EQ(data2, isolate->GetData()); |
- CHECK_EQ(data2, i_isolate->GetData()); |
+ isolate->Exit(); |
+ isolate->Dispose(); |
} |