Index: test/cctest/test-elements-kind.cc |
diff --git a/test/cctest/test-elements-kind.cc b/test/cctest/test-elements-kind.cc |
index 672c3074b69dfa3c51423892195a77b2e0b79468..b97847f3d45dba78d21bc7cf017adc36c3a1ef96 100644 |
--- a/test/cctest/test-elements-kind.cc |
+++ b/test/cctest/test-elements-kind.cc |
@@ -314,7 +314,7 @@ TEST(JSArrayAddingElementsGeneralizingiFastSmiElements) { |
// `delete array[0]` does not alter length, but changes the elments_kind |
name = MakeString("0"); |
- JSReceiver::DeletePropertyOrElement(array, name).Check(); |
+ CHECK(JSReceiver::DeletePropertyOrElement(array, name).FromMaybe(false)); |
CHECK_NE(array->map(), *previous_map); |
CHECK_EQ(array->map()->elements_kind(), FAST_HOLEY_SMI_ELEMENTS); |
CHECK_EQ(1, Smi::cast(array->length())->value()); |
@@ -387,7 +387,7 @@ TEST(JSArrayAddingElementsGeneralizingFastElements) { |
// `delete array[0]` does not alter length, but changes the elments_kind |
name = MakeString("0"); |
- JSReceiver::DeletePropertyOrElement(array, name).Check(); |
+ CHECK(JSReceiver::DeletePropertyOrElement(array, name).FromMaybe(false)); |
CHECK_NE(array->map(), *previous_map); |
CHECK_EQ(array->map()->elements_kind(), FAST_HOLEY_ELEMENTS); |
CHECK_EQ(1, Smi::cast(array->length())->value()); |
@@ -444,7 +444,7 @@ TEST(JSArrayAddingElementsGeneralizingiFastDoubleElements) { |
// `delete array[0]` does not alter length, but changes the elments_kind |
name = MakeString("0"); |
- JSReceiver::DeletePropertyOrElement(array, name).Check(); |
+ CHECK(JSReceiver::DeletePropertyOrElement(array, name).FromMaybe(false)); |
CHECK_NE(array->map(), *previous_map); |
CHECK_EQ(array->map()->elements_kind(), FAST_HOLEY_DOUBLE_ELEMENTS); |
CHECK_EQ(2, Smi::cast(array->length())->value()); |