@@ -3480,16 +3480,34 @@ class ReturnValue {
3480
3480
template<typename T>
3481
3481
class FunctionCallbackInfo {
3482
3482
public:
3483
+ /** The number of available arguments. */
3483
3484
V8_INLINE int Length() const;
3485
+ /** Accessor for the available arguments. */
3484
3486
V8_INLINE Local<Value> operator[](int i) const;
3485
3487
V8_INLINE V8_DEPRECATED("Use Data() to explicitly pass Callee instead",
3486
3488
Local<Function> Callee() const);
3489
+ /** Returns the receiver. This corresponds to the "this" value. */
3487
3490
V8_INLINE Local<Object> This() const;
3491
+ /**
3492
+ * If the callback was created without a Signature, this is the same
3493
+ * value as This(). If there is a signature, and the signature didn't match
3494
+ * This() but one of its hidden prototypes, this will be the respective
3495
+ * hidden prototype.
3496
+ *
3497
+ * Note that this is not the prototype of This() on which the accessor
3498
+ * referencing this callback was found (which in V8 internally is often
3499
+ * referred to as holder [sic]).
3500
+ */
3488
3501
V8_INLINE Local<Object> Holder() const;
3502
+ /** For construct calls, this returns the "new.target" value. */
3489
3503
V8_INLINE Local<Value> NewTarget() const;
3504
+ /** Indicates whether this is a regular call or a construct call. */
3490
3505
V8_INLINE bool IsConstructCall() const;
3506
+ /** The data argument specified when creating the callback. */
3491
3507
V8_INLINE Local<Value> Data() const;
3508
+ /** The current Isolate. */
3492
3509
V8_INLINE Isolate* GetIsolate() const;
3510
+ /** The ReturnValue for the call. */
3493
3511
V8_INLINE ReturnValue<T> GetReturnValue() const;
3494
3512
// This shouldn't be public, but the arm compiler needs it.
3495
3513
static const int kArgsLength = 8;
@@ -5562,9 +5580,13 @@ class V8_EXPORT ObjectTemplate : public Template {
5562
5580
friend class FunctionTemplate;
5563
5581
};
5564
5582
5565
-
5566
5583
/**
5567
5584
* A Signature specifies which receiver is valid for a function.
5585
+ *
5586
+ * A receiver matches a given signature if the receiver (or any of its
5587
+ * hidden prototypes) was created from the signature's FunctionTemplate, or
5588
+ * from a FunctionTemplate that inherits directly or indirectly from the
5589
+ * signature's FunctionTemplate.
5568
5590
*/
5569
5591
class V8_EXPORT Signature : public Data {
5570
5592
public:
0 commit comments