v8 14.1.146 (node 25.0.0)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
FastApiCallbackOptions Struct Reference

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

Collaboration diagram for FastApiCallbackOptions:

Static Public Member Functions

static FastApiCallbackOptions CreateForTesting (Isolate *isolate)
 

Data Fields

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 454 of file v8-fast-api-calls.h.

Member Function Documentation

◆ CreateForTesting()

static 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 459 of file v8-fast-api-calls.h.

Field Documentation

◆ data

The data passed to the FunctionTemplate constructor, or undefined.

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

◆ isolate

v8::Isolate* isolate = nullptr

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


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