Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index fac9f0a1b245827404ba3d67062f89fb0289901a..09aa613eee4e618e79fea8de93285fa07ccb37e0 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -675,7 +675,7 @@ TEST(JSArray) { |
CHECK(array->HasFastElements()); // Must be in fast mode. |
// array[length] = name. |
- ok = array->SetElement(0, *name, kNonStrictMode, true)->ToObjectChecked(); |
+ ok = array->SetElement(0, *name, kNonStrictMode)->ToObjectChecked(); |
CHECK_EQ(Smi::FromInt(1), array->length()); |
CHECK_EQ(array->GetElement(0), *name); |
@@ -690,8 +690,7 @@ TEST(JSArray) { |
CHECK(array->HasDictionaryElements()); // Must be in slow mode. |
// array[length] = name. |
- ok = array->SetElement( |
- int_length, *name, kNonStrictMode, true)->ToObjectChecked(); |
+ ok = array->SetElement(int_length, *name, kNonStrictMode)->ToObjectChecked(); |
uint32_t new_int_length = 0; |
CHECK(array->length()->ToArrayIndex(&new_int_length)); |
CHECK_EQ(static_cast<double>(int_length), new_int_length - 1); |
@@ -718,10 +717,9 @@ TEST(JSObjectCopy) { |
obj->SetProperty( |
*second, Smi::FromInt(2), NONE, kNonStrictMode)->ToObjectChecked(); |
- Object* ok = |
- obj->SetElement(0, *first, kNonStrictMode, true)->ToObjectChecked(); |
+ Object* ok = obj->SetElement(0, *first, kNonStrictMode)->ToObjectChecked(); |
- ok = obj->SetElement(1, *second, kNonStrictMode, true)->ToObjectChecked(); |
+ ok = obj->SetElement(1, *second, kNonStrictMode)->ToObjectChecked(); |
// Make the clone. |
Handle<JSObject> clone = Copy(obj); |
@@ -739,8 +737,8 @@ TEST(JSObjectCopy) { |
clone->SetProperty( |
*second, Smi::FromInt(1), NONE, kNonStrictMode)->ToObjectChecked(); |
- ok = clone->SetElement(0, *second, kNonStrictMode, true)->ToObjectChecked(); |
- ok = clone->SetElement(1, *first, kNonStrictMode, true)->ToObjectChecked(); |
+ ok = clone->SetElement(0, *second, kNonStrictMode)->ToObjectChecked(); |
+ ok = clone->SetElement(1, *first, kNonStrictMode)->ToObjectChecked(); |
CHECK_EQ(obj->GetElement(1), clone->GetElement(0)); |
CHECK_EQ(obj->GetElement(0), clone->GetElement(1)); |