Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index d63c9e08882ecda10952962aa53881db676f472f..000423212f5ec5866d2d578214210112c5cccd2a 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -12018,9 +12018,9 @@ MaybeHandle<Object> JSArray::SetElementsLength( |
.Assert(); |
} |
- SetProperty(deleted, isolate->factory()->length_string(), |
- isolate->factory()->NewNumberFromUint(delete_count), |
- STRICT).Assert(); |
+ ElementsAccessor* accessor = deleted->GetElementsAccessor(); |
+ accessor->SetLength(deleted, isolate->factory()->NewNumberFromUint( |
+ delete_count)).Check(); |
} |
RETURN_ON_EXCEPTION( |