Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 309040c7cd1160edddd1404b9aa64e6ffe4550f3..778bf49597022ff6b6d405430dbb5a40d50ddc0c 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -21959,7 +21959,7 @@ THREADED_TEST(FunctionNew) { |
i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); |
i::Handle<i::JSObject> cache(i_isolate->native_context()->function_cache()); |
i::Handle<i::Object> elm = |
- i::Object::GetElement(i_isolate, cache, serial_number).ToHandleChecked(); |
+ 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); |