Index: src/elements.cc |
diff --git a/src/elements.cc b/src/elements.cc |
index 527df6e3d753cf9386839413d78dc5f9a610447b..c52ba0e047343c496e5fb15176ead8c2493a06e7 100644 |
--- a/src/elements.cc |
+++ b/src/elements.cc |
@@ -766,14 +766,16 @@ class ElementsAccessorBase : public ElementsAccessor { |
Handle<Object> length, |
Handle<FixedArrayBase> backing_store); |
- MUST_USE_RESULT virtual MaybeObject* SetCapacityAndLength( |
- JSArray* array, |
+ virtual void SetCapacityAndLength( |
+ Handle<JSArray> array, |
int capacity, |
int length) V8_FINAL V8_OVERRIDE { |
- return ElementsAccessorSubclass::SetFastElementsCapacityAndLength( |
- array, |
- capacity, |
- length); |
+ CALL_HEAP_FUNCTION_VOID( |
+ array->GetIsolate(), |
+ ElementsAccessorSubclass::SetFastElementsCapacityAndLength( |
+ *array, |
+ capacity, |
+ length)); |
} |
MUST_USE_RESULT static MaybeObject* SetFastElementsCapacityAndLength( |