![]() |
v8 13.6.233 (node 24.1.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< 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 |
void | internal::PrintFunctionCallbackInfo (void *) |
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 118 of file v8-function-callback.h.
The data argument specified when creating the callback.
Definition at line 639 of file v8-function-callback.h.
References v8::api_internal::GetFunctionTemplateData(), and GetIsolate().
Isolate * GetIsolate | ( | ) | const |
The current Isolate.
Definition at line 645 of file v8-function-callback.h.
Referenced by Data(), and operator[]().
ReturnValue< T > GetReturnValue | ( | ) | const |
The ReturnValue for the call.
Definition at line 650 of file v8-function-callback.h.
bool IsConstructCall | ( | ) | const |
Indicates whether this is a regular call or a construct call.
Definition at line 655 of file v8-function-callback.h.
References NewTarget().
int Length | ( | ) | const |
The number of available arguments.
Definition at line 660 of file v8-function-callback.h.
Referenced by operator[]().
For construct calls, this returns the "new.target" value.
Definition at line 634 of file v8-function-callback.h.
Referenced by IsConstructCall().
Accessor for the available arguments. Returns undefined
if the index is out of bounds.
Definition at line 621 of file v8-function-callback.h.
References GetIsolate(), Length(), and v8::Undefined().
Returns the receiver. This corresponds to the "this" value.
Definition at line 628 of file v8-function-callback.h.
|
friend |
Definition at line 143 of file v8-function-callback.h.
References debug::ConsoleCallArguments.
Referenced by debug::ConsoleCallArguments.
|
friend |
Definition at line 141 of file v8-function-callback.h.
References internal::FunctionCallbackArguments.
|
friend |
Definition at line 141 of file v8-function-callback.h.
Referenced by internal::CustomArguments< FunctionCallbackInfo >.
|
friend |
References v8::internal::kApiSystemPointerSize, and V8_INLINE.