v8 13.6.233 (node 24.1.0)
V8 is Google's open source JavaScript engine
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages Concepts
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 490 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 495 of file v8-fast-api-calls.h.

References isolate.

Field Documentation

◆ data

The data passed to the FunctionTemplate constructor, or undefined.

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

◆ isolate

v8::Isolate* isolate = nullptr

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

Referenced by CreateForTesting().


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