Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 26420b559033e8e48b33b20ae5a114e09929b018..78f533f65c34a45c88e40c5f7d08a834fb0aeb52 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -22009,8 +22009,9 @@ THREADED_TEST(FunctionNew) { |
i::Smi::cast(v8::Utils::OpenHandle(*func) |
->shared()->get_api_func_data()->serial_number())->value(); |
i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); |
- i::Object* elm = i_isolate->native_context()->function_cache() |
- ->GetElementNoExceptionThrown(i_isolate, serial_number); |
+ i::Handle<i::JSObject> cache(i_isolate->native_context()->function_cache()); |
+ i::Handle<i::Object> elm = |
+ i::Object::GetElementNoExceptionThrown(i_isolate, cache, serial_number); |
CHECK(elm->IsUndefined()); |
// Verify that each Function::New creates a new function instance |
Local<Object> data2 = v8::Object::New(isolate); |