Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index aa28d4feec73cd9893502f300e2f48a5144896d7..1f3fa318b28f29e16264b917b54ca08b2e4cf49f 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -775,7 +775,7 @@ TEST(JSArray) { |
// array[length] = name. |
JSReceiver::SetElement(array, 0, name, NONE, SLOPPY).Check(); |
CHECK_EQ(Smi::FromInt(1), array->length()); |
- CHECK_EQ(*i::Object::GetElement(isolate, array, 0), *name); |
+ CHECK_EQ(*i::Object::GetElement(isolate, array, 0).ToHandleChecked(), *name); |
// Set array length with larger than smi value. |
Handle<Object> length = |
@@ -792,8 +792,9 @@ TEST(JSArray) { |
uint32_t new_int_length = 0; |
CHECK(array->length()->ToArrayIndex(&new_int_length)); |
CHECK_EQ(static_cast<double>(int_length), new_int_length - 1); |
- CHECK_EQ(*i::Object::GetElement(isolate, array, int_length), *name); |
- CHECK_EQ(*i::Object::GetElement(isolate, array, 0), *name); |
+ CHECK_EQ(*i::Object::GetElement(isolate, array, int_length).ToHandleChecked(), |
+ *name); |
+ CHECK_EQ(*i::Object::GetElement(isolate, array, 0).ToHandleChecked(), *name); |
} |
@@ -824,10 +825,10 @@ TEST(JSObjectCopy) { |
Handle<JSObject> clone = JSObject::Copy(obj); |
CHECK(!clone.is_identical_to(obj)); |
- CHECK_EQ(*i::Object::GetElement(isolate, obj, 0), |
- *i::Object::GetElement(isolate, clone, 0)); |
- CHECK_EQ(*i::Object::GetElement(isolate, obj, 1), |
- *i::Object::GetElement(isolate, clone, 1)); |
+ CHECK_EQ(*i::Object::GetElement(isolate, obj, 0).ToHandleChecked(), |
+ *i::Object::GetElement(isolate, clone, 0).ToHandleChecked()); |
+ CHECK_EQ(*i::Object::GetElement(isolate, obj, 1).ToHandleChecked(), |
+ *i::Object::GetElement(isolate, clone, 1).ToHandleChecked()); |
CHECK_EQ(*Object::GetProperty(obj, first), |
*Object::GetProperty(clone, first)); |
@@ -841,10 +842,10 @@ TEST(JSObjectCopy) { |
JSReceiver::SetElement(clone, 0, second, NONE, SLOPPY).Check(); |
JSReceiver::SetElement(clone, 1, first, NONE, SLOPPY).Check(); |
- CHECK_EQ(*i::Object::GetElement(isolate, obj, 1), |
- *i::Object::GetElement(isolate, clone, 0)); |
- CHECK_EQ(*i::Object::GetElement(isolate, obj, 0), |
- *i::Object::GetElement(isolate, clone, 1)); |
+ CHECK_EQ(*i::Object::GetElement(isolate, obj, 1).ToHandleChecked(), |
+ *i::Object::GetElement(isolate, clone, 0).ToHandleChecked()); |
+ CHECK_EQ(*i::Object::GetElement(isolate, obj, 0).ToHandleChecked(), |
+ *i::Object::GetElement(isolate, clone, 1).ToHandleChecked()); |
CHECK_EQ(*Object::GetProperty(obj, second), |
*Object::GetProperty(clone, first)); |