Index: test/cctest/test-profile-generator.cc |
diff --git a/test/cctest/test-profile-generator.cc b/test/cctest/test-profile-generator.cc |
index 7504b171debff06110d7ed49fc9d4763969c5f84..2fd61c4d6c6863aaf42708fee6ad3d55df18ba4b 100644 |
--- a/test/cctest/test-profile-generator.cc |
+++ b/test/cctest/test-profile-generator.cc |
@@ -605,7 +605,7 @@ TEST(RecordStackTraceAtStartProfiling) { |
// don't appear in the stack trace. |
i::FLAG_use_inlining = false; |
- v8::Isolate* isolate = v8::Isolate::GetCurrent(); |
+ v8::Isolate* isolate = CcTest::isolate(); |
v8::HandleScope scope(isolate); |
const char* extensions[] = { "v8/profiler" }; |
v8::ExtensionConfiguration config(1, extensions); |