Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index 6229670da848efbbf75c6d50e3605d0e052180a7..cdff95050b4ec4e36be0893b7ca880b8062e3c05 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -791,7 +791,7 @@ TEST(JSArray) { |
CHECK(array->HasFastSmiOrObjectElements()); |
// array[length] = name. |
- JSReceiver::SetElement(array, 0, name, SLOPPY).Check(); |
+ JSReceiver::SetElement(isolate, array, 0, name, SLOPPY).Check(); |
CHECK_EQ(Smi::FromInt(1), array->length()); |
element = i::Object::GetElement(isolate, array, 0).ToHandleChecked(); |
CHECK_EQ(*element, *name); |
@@ -805,7 +805,7 @@ TEST(JSArray) { |
CHECK(array->HasDictionaryElements()); // Must be in slow mode. |
// array[length] = name. |
- JSReceiver::SetElement(array, int_length, name, SLOPPY).Check(); |
+ JSReceiver::SetElement(isolate, array, int_length, name, SLOPPY).Check(); |
uint32_t new_int_length = 0; |
CHECK(array->length()->ToArrayIndex(&new_int_length)); |
CHECK_EQ(static_cast<double>(int_length), new_int_length - 1); |
@@ -836,8 +836,8 @@ TEST(JSObjectCopy) { |
JSReceiver::SetProperty(obj, first, one, SLOPPY).Check(); |
JSReceiver::SetProperty(obj, second, two, SLOPPY).Check(); |
- JSReceiver::SetElement(obj, 0, first, SLOPPY).Check(); |
- JSReceiver::SetElement(obj, 1, second, SLOPPY).Check(); |
+ JSReceiver::SetElement(isolate, obj, 0, first, SLOPPY).Check(); |
+ JSReceiver::SetElement(isolate, obj, 1, second, SLOPPY).Check(); |
// Make the clone. |
Handle<Object> value1, value2; |
@@ -862,8 +862,8 @@ TEST(JSObjectCopy) { |
JSReceiver::SetProperty(clone, first, two, SLOPPY).Check(); |
JSReceiver::SetProperty(clone, second, one, SLOPPY).Check(); |
- JSReceiver::SetElement(clone, 0, second, SLOPPY).Check(); |
- JSReceiver::SetElement(clone, 1, first, SLOPPY).Check(); |
+ JSReceiver::SetElement(isolate, clone, 0, second, SLOPPY).Check(); |
+ JSReceiver::SetElement(isolate, clone, 1, first, SLOPPY).Check(); |
value1 = Object::GetElement(isolate, obj, 1).ToHandleChecked(); |
value2 = Object::GetElement(isolate, clone, 0).ToHandleChecked(); |