Struct v8::FunctionCallbackArguments
source · pub struct FunctionCallbackArguments<'s> { /* private fields */ }
Implementations§
source§impl<'s> FunctionCallbackArguments<'s>
impl<'s> FunctionCallbackArguments<'s>
pub unsafe fn from_function_callback_info(
info: *const FunctionCallbackInfo
) -> Self
pub unsafe fn get_isolate(&mut self) -> &mut Isolate
sourcepub fn this(&self) -> Local<'s, Object>
pub fn this(&self) -> Local<'s, Object>
Returns the receiver. This corresponds to the “this” value.
sourcepub fn data(&self) -> Option<Local<'s, Value>>
pub fn data(&self) -> Option<Local<'s, Value>>
Returns the data argument specified when creating the callback.
sourcepub fn get(&self, i: int) -> Local<'s, Value>
pub fn get(&self, i: int) -> Local<'s, Value>
Accessor for the available arguments. Returns undefined
if the index is
out of bounds.
sourcepub fn new_target(&self) -> Local<'s, Value>
pub fn new_target(&self) -> Local<'s, Value>
For construct calls, this returns the “new.target” value.