Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index a13a6e5f2913f050bfdde02aba0aa3bc6dfb133a..50ce753db869947089012d42c9710ace2ac70818 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -1981,10 +1981,9 @@ THREADED_TEST(ExecutableAccessorIsPreservedOnAttributeChange) { |
i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); |
i::LookupResult lookup(i_isolate); |
i::Handle<i::String> name(v8::Utils::OpenHandle(*v8_str("length"))); |
- a->LookupOwnRealNamedProperty(name, &lookup); |
- CHECK(lookup.IsPropertyCallbacks()); |
- i::Handle<i::Object> callback(lookup.GetCallbackObject(), i_isolate); |
- CHECK(callback->IsExecutableAccessorInfo()); |
+ i::LookupIterator it(a, name, i::LookupIterator::CHECK_PROPERTY); |
+ CHECK(it.HasProperty()); |
+ CHECK(it.GetAccessors()->IsExecutableAccessorInfo()); |
} |