Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 6ba8859ef405acde38bad6f67ae4abe0bc5bebce..1d1abe81ff8716e8fdb3ad2677dfc97723179522 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -1687,6 +1687,14 @@ class Object : public Value { |
V8EXPORT ExternalArrayType GetIndexedPropertiesExternalArrayDataType(); |
V8EXPORT int GetIndexedPropertiesExternalArrayDataLength(); |
+ /** |
+ * Call an Object as a function if a callback is set by the |
+ * ObjectTemplate::SetCallAsFunctionHandler method. |
+ */ |
+ V8EXPORT Local<Value> CallAsFunction(Handle<Object> recv, |
+ int argc, |
+ Handle<Value> argv[]); |
+ |
V8EXPORT static Local<Object> New(); |
static inline Object* Cast(Value* obj); |
private: |