![]() |
v8 11.3.244 (node 20.3.0)
V8 is Google's open source JavaScript engine
|
#include <v8-function-callback.h>
Public Member Functions | |
V8_INLINE int | Length () const |
V8_INLINE Local< Value > | operator[] (int i) const |
V8_INLINE Local< Object > | This () const |
V8_INLINE Local< Object > | Holder () const |
V8_INLINE Local< Value > | NewTarget () const |
V8_INLINE bool | IsConstructCall () const |
V8_INLINE Local< Value > | Data () const |
V8_INLINE Isolate * | GetIsolate () const |
V8_INLINE ReturnValue< T > | GetReturnValue () const |
Friends | |
class | internal::FunctionCallbackArguments |
class | internal::CustomArguments< FunctionCallbackInfo > |
class | debug::ConsoleCallArguments |
class | internal::Builtins |
The argument information given to function call callbacks. This class provides access to information about the context of the call, including the receiver, the number and values of arguments, and the holder of the function.
Definition at line 93 of file v8-function-callback.h.
The data argument specified when creating the callback.
Definition at line 440 of file v8-function-callback.h.
Isolate * GetIsolate |
The current Isolate.
Definition at line 445 of file v8-function-callback.h.
ReturnValue< T > GetReturnValue |
The ReturnValue for the call.
Definition at line 450 of file v8-function-callback.h.
If the callback was created without a Signature, this is the same value as This(). If there is a signature, and the signature didn't match This() but one of its hidden prototypes, this will be the respective hidden prototype.
Note that this is not the prototype of This() on which the accessor referencing this callback was found (which in V8 internally is often referred to as holder [sic]).
Definition at line 430 of file v8-function-callback.h.
bool IsConstructCall |
Indicates whether this is a regular call or a construct call.
Definition at line 455 of file v8-function-callback.h.
int Length |
The number of available arguments.
Definition at line 460 of file v8-function-callback.h.
For construct calls, this returns the "new.target" value.
Definition at line 435 of file v8-function-callback.h.
Accessor for the available arguments. Returns undefined
if the index is out of bounds.
Definition at line 417 of file v8-function-callback.h.
References v8::Undefined().
Returns the receiver. This corresponds to the "this" value.
Definition at line 424 of file v8-function-callback.h.
|
friend |
Definition at line 129 of file v8-function-callback.h.
|
friend |
Definition at line 130 of file v8-function-callback.h.
|
friend |
Definition at line 127 of file v8-function-callback.h.
|
friend |
Definition at line 127 of file v8-function-callback.h.