Index: gin/arguments.h |
diff --git a/gin/arguments.h b/gin/arguments.h |
index 509c22ca14f892f3188348e6b1b9fae01b5caafa..96a3701aba2f2f39280d0f4210619bd10c4e8639 100644 |
--- a/gin/arguments.h |
+++ b/gin/arguments.h |
@@ -79,6 +79,10 @@ class GIN_EXPORT Arguments { |
v8::Isolate* isolate() const { return isolate_; } |
+ // Allows the function handler to distinguish between normal invocation |
+ // and object construction. |
+ bool IsConstructCall() const; |
+ |
private: |
v8::Isolate* isolate_; |
const v8::FunctionCallbackInfo<v8::Value>* info_; |