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