@@ -3578,16 +3578,34 @@ class ReturnValue {
3578
3578
template<typename T>
3579
3579
class FunctionCallbackInfo {
3580
3580
public:
3581
+ /** The number of available arguments. */
3581
3582
V8_INLINE int Length() const;
3583
+ /** Accessor for the available arguments. */
3582
3584
V8_INLINE Local<Value> operator[](int i) const;
3583
3585
V8_INLINE V8_DEPRECATED("Use Data() to explicitly pass Callee instead",
3584
3586
Local<Function> Callee() const);
3587
+ /** Returns the receiver. This corresponds to the "this" value. */
3585
3588
V8_INLINE Local<Object> This() const;
3589
+ /**
3590
+ * If the callback was created without a Signature, this is the same
3591
+ * value as This(). If there is a signature, and the signature didn't match
3592
+ * This() but one of its hidden prototypes, this will be the respective
3593
+ * hidden prototype.
3594
+ *
3595
+ * Note that this is not the prototype of This() on which the accessor
3596
+ * referencing this callback was found (which in V8 internally is often
3597
+ * referred to as holder [sic]).
3598
+ */
3586
3599
V8_INLINE Local<Object> Holder() const;
3600
+ /** For construct calls, this returns the "new.target" value. */
3587
3601
V8_INLINE Local<Value> NewTarget() const;
3602
+ /** Indicates whether this is a regular call or a construct call. */
3588
3603
V8_INLINE bool IsConstructCall() const;
3604
+ /** The data argument specified when creating the callback. */
3589
3605
V8_INLINE Local<Value> Data() const;
3606
+ /** The current Isolate. */
3590
3607
V8_INLINE Isolate* GetIsolate() const;
3608
+ /** The ReturnValue for the call. */
3591
3609
V8_INLINE ReturnValue<T> GetReturnValue() const;
3592
3610
// This shouldn't be public, but the arm compiler needs it.
3593
3611
static const int kArgsLength = 8;
@@ -5745,9 +5763,13 @@ class V8_EXPORT ObjectTemplate : public Template {
5745
5763
friend class FunctionTemplate;
5746
5764
};
5747
5765
5748
-
5749
5766
/**
5750
5767
* A Signature specifies which receiver is valid for a function.
5768
+ *
5769
+ * A receiver matches a given signature if the receiver (or any of its
5770
+ * hidden prototypes) was created from the signature's FunctionTemplate, or
5771
+ * from a FunctionTemplate that inherits directly or indirectly from the
5772
+ * signature's FunctionTemplate.
5751
5773
*/
5752
5774
class V8_EXPORT Signature : public Data {
5753
5775
public:
0 commit comments