Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index ad316ceca36b419cee3fb24a5c90a717b849973d..7875cfaf205e453b56a9d494c11351e159597267 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -1706,7 +1706,12 @@ class Array : public Object { |
*/ |
V8EXPORT Local<Object> CloneElementAt(uint32_t index); |
+ /** |
+ * Creates a JavaScript array with the given length. If the length |
+ * is negative the returned array will have length 0. |
+ */ |
V8EXPORT static Local<Array> New(int length = 0); |
+ |
static inline Array* Cast(Value* obj); |
private: |
V8EXPORT Array(); |