| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index eb0b552f605dc196f0329cb4c8ed46c00304621b..b35500dd5e3712f843ad8847cef404a40eb0896a 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -2302,7 +2302,8 @@ class V8EXPORT FunctionTemplate : public Template {
|
| static Local<FunctionTemplate> New(
|
| InvocationCallback callback = 0,
|
| Handle<Value> data = Handle<Value>(),
|
| - Handle<Signature> signature = Handle<Signature>());
|
| + Handle<Signature> signature = Handle<Signature>(),
|
| + int length = 0);
|
| /** Returns the unique function instance in the current execution context.*/
|
| Local<Function> GetFunction();
|
|
|
| @@ -2314,6 +2315,9 @@ class V8EXPORT FunctionTemplate : public Template {
|
| void SetCallHandler(InvocationCallback callback,
|
| Handle<Value> data = Handle<Value>());
|
|
|
| + /** Set the predefined length property for the FunctionTemplate. */
|
| + void SetLength(int length);
|
| +
|
| /** Get the InstanceTemplate. */
|
| Local<ObjectTemplate> InstanceTemplate();
|
|
|
| @@ -2326,7 +2330,6 @@ class V8EXPORT FunctionTemplate : public Template {
|
| */
|
| Local<ObjectTemplate> PrototypeTemplate();
|
|
|
| -
|
| /**
|
| * Set the class name of the FunctionTemplate. This is used for
|
| * printing objects created with the function created from the
|
|
|