Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 76e97b1b2268193b7eb0da7788e271fb734182c8..e958400f9a278ea670a35c819eb55febc6732bc8 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -11898,8 +11898,11 @@ Handle<FixedArray> JSObject::SetFastElementsCapacityAndLength( |
DCHECK(!object->HasExternalArrayElements()); |
// Allocate a new fast elements backing store. |
+ Isolate* isolate = object->GetIsolate(); |
Handle<FixedArray> new_elements = |
- object->GetIsolate()->factory()->NewUninitializedFixedArray(capacity); |
+ isolate->factory()->NewUninitializedFixedArray(capacity); |
+ |
+ isolate->UpdateArrayProtectorOnSetLength(object); |
ElementsKind elements_kind = object->GetElementsKind(); |
ElementsKind new_elements_kind; |