Index: src/elements.cc |
diff --git a/src/elements.cc b/src/elements.cc |
index 5d3ef1308615ee8bc19e8a1879c2330ce5c0ec26..7730ce5ff7517f0b2405ea8089a1f227a5270d8e 100644 |
--- a/src/elements.cc |
+++ b/src/elements.cc |
@@ -1975,12 +1975,11 @@ MUST_USE_RESULT Handle<Object> ElementsAccessorBase<ElementsAccessorSubclass, |
} |
} |
- Factory* factory = isolate->factory(); |
// Fall-back case: The new length is not a number so make the array |
// size one and set only element to length. |
- Handle<FixedArray> new_backing_store = factory->NewFixedArray(1); |
+ Handle<FixedArray> new_backing_store = isolate->factory()->NewFixedArray(1); |
new_backing_store->set(0, *length); |
- factory->SetContent(array, new_backing_store); |
+ JSArray::SetContent(array, new_backing_store); |
return array; |
} |