neon_runtime/nan/call.rs
1//! Facilities for working with `v8::FunctionCallbackInfo` and getting the current `v8::Isolate`.
2
3pub use neon_sys::CCallback;
4
5/// Sets the return value of the function call.
6pub use neon_sys::Neon_Call_SetReturn as set_return;
7
8/// Gets the isolate of the function call.
9pub use neon_sys::Neon_Call_GetIsolate as get_isolate;
10
11/// Gets the current `v8::Isolate`.
12pub use neon_sys::Neon_Call_CurrentIsolate as current_isolate;
13
14/// Indicates if the function call was invoked as a constructor.
15pub use neon_sys::Neon_Call_IsConstruct as is_construct;
16
17/// Mutates the `out` argument provided to refer to the `v8::Local` handle value of the object
18/// the function is bound to.
19pub use neon_sys::Neon_Call_This as this;
20
21/// Mutates the `out` argument provided to refer to the pointer value of the
22/// `v8::FunctionCallbackInfo` `Data`.
23pub use neon_sys::Neon_Call_Data as data;
24
25/// Gets the number of arguments passed to the function.
26pub use neon_sys::Neon_Call_Length as len;
27
28/// Mutates the `out` argument provided to refer to the `v8::Local` handle value of the `i`th
29/// argument passed to the function.
30pub use neon_sys::Neon_Call_Get as get;