Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 4d2c6b4ceaa8bcddcf796e033e98e507319da528..e848b5789da3be1f6f29811dfdde32f771179be1 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -717,10 +717,10 @@ Handle<JSObject> Factory::NewJSObjectFromMap(Handle<Map> map) { |
} |
-Handle<JSArray> Factory::NewJSArray(int length, |
+Handle<JSArray> Factory::NewJSArray(int capacity, |
PretenureFlag pretenure) { |
Handle<JSObject> obj = NewJSObject(Top::array_function(), pretenure); |
- CALL_HEAP_FUNCTION(Handle<JSArray>::cast(obj)->Initialize(length), JSArray); |
+ CALL_HEAP_FUNCTION(Handle<JSArray>::cast(obj)->Initialize(capacity), JSArray); |
} |