This repository was archived by the owner on Mar 29, 2024. It is now read-only.
File tree 2 files changed +22
-0
lines changed
2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -32,20 +32,33 @@ public function GetContext(): Context
32
32
}
33
33
34
34
/**
35
+ * Returns the receiver. This corresponds to the "this" value.
36
+ *
35
37
* @return \V8\ObjectValue
36
38
*/
37
39
public function This (): ObjectValue
38
40
{
39
41
}
40
42
41
43
/**
44
+ * If the callback was created without a Signature, this is the same
45
+ * value as This(). If there is a signature, and the signature didn't match
46
+ * This() but one of its hidden prototypes, this will be the respective
47
+ * hidden prototype.
48
+ *
49
+ * Note that this is not the prototype of This() on which the accessor
50
+ * referencing this callback was found (which in V8 internally is often
51
+ * referred to as holder [sic]).
52
+ *
42
53
* @return \V8\ObjectValue
43
54
*/
44
55
public function Holder (): ObjectValue
45
56
{
46
57
}
47
58
48
59
/**
60
+ * The ReturnValue for the call
61
+ *
49
62
* @return \V8\ReturnValue
50
63
*/
51
64
public function GetReturnValue (): ReturnValue
Original file line number Diff line number Diff line change @@ -32,17 +32,26 @@ public function Length(): int
32
32
}
33
33
34
34
/**
35
+ * Get available arguments
36
+ *
35
37
* @return Value[] | StringValue[] | SymbolValue[] | NumberValue[] | ObjectValue[] | ArrayObject[] | FunctionObject[] | StringObject[] | SymbolObject[]
36
38
*/
37
39
public function Arguments (): array
38
40
{
39
41
}
40
42
43
+ /**
44
+ * For construct calls, this returns the "new.target" value.
45
+ *
46
+ * @return Value
47
+ */
41
48
public function NewTarget (): Value
42
49
{
43
50
}
44
51
45
52
/**
53
+ * Indicates whether this is a regular call or a construct call.
54
+ *
46
55
* @return bool
47
56
*/
48
57
public function IsConstructCall (): bool
You can’t perform that action at this time.
0 commit comments