Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index f87d7231febcb2f8d8e3f7e18c0547660e8b9f28..3e5954c7fa07a12132c9213b266f1efca64acd1a 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -15686,7 +15686,7 @@ static void CheckElementValue(i::Isolate* isolate, |
int expected, |
i::Handle<i::Object> obj, |
int offset) { |
- i::Object* element = obj->GetElement(isolate, offset)->ToObjectChecked(); |
+ i::Object* element = *i::Object::GetElement(isolate, obj, offset); |
CHECK_EQ(expected, i::Smi::cast(element)->value()); |
} |
@@ -16320,7 +16320,7 @@ static void ObjectWithExternalArrayTestHelper( |
array_type == v8::kExternalFloat32Array) { |
CHECK_EQ(static_cast<int>(i::OS::nan_value()), |
static_cast<int>( |
- jsobj->GetElement(isolate, 7)->ToObjectChecked()->Number())); |
+ i::Object::GetElement(isolate, jsobj, 7)->Number())); |
} else { |
CheckElementValue(isolate, 0, jsobj, 7); |
} |
@@ -16332,7 +16332,7 @@ static void ObjectWithExternalArrayTestHelper( |
CHECK_EQ(2, result->Int32Value()); |
CHECK_EQ(2, |
static_cast<int>( |
- jsobj->GetElement(isolate, 6)->ToObjectChecked()->Number())); |
+ i::Object::GetElement(isolate, jsobj, 6)->Number())); |
if (array_type != v8::kExternalFloat32Array && |
array_type != v8::kExternalFloat64Array) { |
@@ -16612,7 +16612,7 @@ static void ExternalArrayTestHelper(v8::ExternalArrayType array_type, |
kElementCount); |
CHECK_EQ(1, |
static_cast<int>( |
- jsobj->GetElement(isolate, 1)->ToObjectChecked()->Number())); |
+ i::Object::GetElement(isolate, jsobj, 1)->Number())); |
ObjectWithExternalArrayTestHelper<ExternalArrayClass, ElementType>( |
context.local(), obj, kElementCount, array_type, low, high); |