v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::FastApiCallbackOptions Struct Reference

#include <v8-fast-api-calls.h>

Collaboration diagram for v8::FastApiCallbackOptions:

Static Public Member Functions

static FastApiCallbackOptions CreateForTesting (Isolate *isolate)
 

Public Attributes

v8::Isolateisolate = nullptr
 
v8::Local< v8::Valuedata
 

Detailed Description

A struct which may be passed to a fast call callback, like so:

void FastMethodWithOptions(int param, FastApiCallbackOptions& options);

Definition at line 490 of file v8-fast-api-calls.h.

Member Function Documentation

◆ CreateForTesting()

static FastApiCallbackOptions v8::FastApiCallbackOptions::CreateForTesting ( Isolate * isolate)
inlinestatic

Creates a new instance of FastApiCallbackOptions for testing purpose. The returned instance may be filled with mock data.

Definition at line 495 of file v8-fast-api-calls.h.

Member Data Documentation

◆ data

v8::Local<v8::Value> v8::FastApiCallbackOptions::data

The data passed to the FunctionTemplate constructor, or undefined.

Definition at line 504 of file v8-fast-api-calls.h.

◆ isolate

v8::Isolate* v8::FastApiCallbackOptions::isolate = nullptr

Definition at line 499 of file v8-fast-api-calls.h.


The documentation for this struct was generated from the following file: