Index: test/cctest/test-mark-compact.cc |
diff --git a/test/cctest/test-mark-compact.cc b/test/cctest/test-mark-compact.cc |
index b08f5d4687f484c305929f0aeebf8ee9b8c96464..25b30ef4e4840b7b1e442a50536a41f245f265ab 100644 |
--- a/test/cctest/test-mark-compact.cc |
+++ b/test/cctest/test-mark-compact.cc |
@@ -173,8 +173,7 @@ TEST(MarkCompactCollector) { |
{ HandleScope scope(isolate); |
Handle<String> func_name = factory->InternalizeUtf8String("theFunction"); |
CHECK(JSReceiver::HasLocalProperty(global, func_name)); |
- Handle<Object> func_value = |
- Object::GetProperty(global, func_name).ToHandleChecked(); |
+ Handle<Object> func_value = Object::GetProperty(global, func_name); |
CHECK(func_value->IsJSFunction()); |
Handle<JSFunction> function = Handle<JSFunction>::cast(func_value); |
Handle<JSObject> obj = factory->NewJSObject(function); |
@@ -191,12 +190,10 @@ TEST(MarkCompactCollector) { |
{ HandleScope scope(isolate); |
Handle<String> obj_name = factory->InternalizeUtf8String("theObject"); |
CHECK(JSReceiver::HasLocalProperty(global, obj_name)); |
- Handle<Object> object = |
- Object::GetProperty(global, obj_name).ToHandleChecked(); |
+ Handle<Object> object = Object::GetProperty(global, obj_name); |
CHECK(object->IsJSObject()); |
Handle<String> prop_name = factory->InternalizeUtf8String("theSlot"); |
- CHECK_EQ(*Object::GetProperty(object, prop_name).ToHandleChecked(), |
- Smi::FromInt(23)); |
+ CHECK_EQ(*Object::GetProperty(object, prop_name), Smi::FromInt(23)); |
} |
} |