Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 66c3043b4aa75f4dda797c749195d22d01ed3511..1cfa557d16b0ec87064783e3fc9d991a64e33424 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -4422,6 +4422,14 @@ class V8_EXPORT FunctionTemplate : public Template { |
Local<Value> data = Local<Value>(), |
Local<Signature> signature = Local<Signature>(), int length = 0); |
+#ifdef V8_JS_ACCESSORS |
+ /** Creates a function template with a code object. */ |
+ static Local<FunctionTemplate> New( |
+ Isolate* isolate, Local<Value> code, |
+ Local<Value> data = Local<Value>(), |
+ Local<Signature> signature = Local<Signature>(), int length = 0); |
+#endif |
+ |
/** Returns the unique function instance in the current execution context.*/ |
V8_DEPRECATE_SOON("Use maybe version", Local<Function> GetFunction()); |
V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction( |
@@ -4434,6 +4442,10 @@ class V8_EXPORT FunctionTemplate : public Template { |
*/ |
void SetCallHandler(FunctionCallback callback, |
Local<Value> data = Local<Value>()); |
+#ifdef V8_JS_ACCESSORS |
+ void SetCallHandler(Local<Value> code, |
+ Local<Value> data = Local<Value>()); |
+#endif |
/** Set the predefined length property for the FunctionTemplate. */ |
void SetLength(int length); |