Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index 47c85c224314c0c912d0d5b5b2dd2c0ec8535890..e18094b2614cc7babb881277c9f1c9d691bf7dc6 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -773,7 +773,7 @@ TEST(JSArray) { |
JSArray::Initialize(array, 0); |
// Set array length to 0. |
- *JSArray::SetElementsLength(array, handle(Smi::FromInt(0), isolate)); |
+ JSArray::SetElementsLength(array, handle(Smi::FromInt(0), isolate)).Check(); |
CHECK_EQ(Smi::FromInt(0), array->length()); |
// Must be in fast mode. |
CHECK(array->HasFastSmiOrObjectElements()); |
@@ -786,7 +786,7 @@ TEST(JSArray) { |
// Set array length with larger than smi value. |
Handle<Object> length = |
factory->NewNumberFromUint(static_cast<uint32_t>(Smi::kMaxValue) + 1); |
- *JSArray::SetElementsLength(array, length); |
+ JSArray::SetElementsLength(array, length).Check(); |
uint32_t int_length = 0; |
CHECK(length->ToArrayIndex(&int_length)); |