Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 78ee7e6a0b63396da9262534a8696838f7e99b8f..ea62cf610964f4fa534ffb413c41e3c8acb49018 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -1614,6 +1614,14 @@ class Object : public Value { |
int argc, |
Handle<Value> argv[]); |
+ /** |
+ * Call an Object as a consturctor if a callback is set by the |
+ * ObjectTemplate::SetCallAsFunctionHandler method. |
+ * Note: This method behaves like the Function::NewInstance method. |
+ */ |
+ V8EXPORT Local<Value> CallAsConstructor(int argc, |
+ Handle<Value> argv[]); |
+ |
V8EXPORT static Local<Object> New(); |
static inline Object* Cast(Value* obj); |
private: |