Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 9d17f1f8bd4e6f9275c00b106dee86174b2edae1..24fdf477a8e6683f49a58789bd1866895b25f146 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -11807,8 +11807,8 @@ MaybeHandle<Object> JSArray::SetElementsLength( |
// Skip deletions where the property was an accessor, leaving holes |
// in the array of old values. |
if (old_values[i]->IsTheHole()) continue; |
- JSObject::SetElement( |
- deleted, indices[i] - index, old_values[i], NONE, SLOPPY).Assert(); |
+ JSObject::SetOwnElement(deleted, indices[i] - index, old_values[i], |
+ SLOPPY).Assert(); |
} |
SetProperty(deleted, isolate->factory()->length_string(), |