Index: test/cctest/test-func-name-inference.cc |
diff --git a/test/cctest/test-func-name-inference.cc b/test/cctest/test-func-name-inference.cc |
index a0c4b1e72864cf8df813714d4f0a3f9c677c2bb2..27225e9a03ade26dcc19208421e296b33d53164f 100644 |
--- a/test/cctest/test-func-name-inference.cc |
+++ b/test/cctest/test-func-name-inference.cc |
@@ -51,7 +51,7 @@ using ::v8::internal::String; |
static void CheckFunctionName(v8::Handle<v8::Script> script, |
const char* func_pos_src, |
const char* ref_inferred_name) { |
- Isolate* isolate = Isolate::Current(); |
+ Isolate* isolate = CcTest::i_isolate(); |
Factory* factory = isolate->factory(); |
// Get script source. |