v8  9.4.146 (node 16.13.0)
V8 is Google's open source JavaScript engine
ScriptCompiler::Source Class Reference

#include <v8.h>

Public Member Functions

V8_INLINE Source (Local< String > source_string, const ScriptOrigin &origin, CachedData *cached_data=nullptr, ConsumeCodeCacheTask *consume_cache_task=nullptr)
 
V8_INLINE Source (Local< String > source_string, CachedData *cached_data=nullptr, ConsumeCodeCacheTask *consume_cache_task=nullptr)
 
V8_INLINE ~Source ()=default
 
V8_INLINE const CachedDataGetCachedData () const
 
V8_INLINE const ScriptOriginOptionsGetResourceOptions () const
 

Friends

class ScriptCompiler
 

Detailed Description

Source code which can be then compiled to a UnboundScript or Script.

Definition at line 1854 of file v8.h.

Constructor & Destructor Documentation

◆ Source() [1/2]

Source ( Local< String source_string,
const ScriptOrigin origin,
CachedData cached_data = nullptr,
ConsumeCodeCacheTask consume_cache_task = nullptr 
)

◆ Source() [2/2]

Source ( Local< String source_string,
CachedData cached_data = nullptr,
ConsumeCodeCacheTask consume_cache_task = nullptr 
)
explicit

Definition at line 11566 of file v8.h.

◆ ~Source()

V8_INLINE ~Source ( )
default

Member Function Documentation

◆ GetCachedData()

const ScriptCompiler::CachedData * GetCachedData ( ) const

Definition at line 11572 of file v8.h.

◆ GetResourceOptions()

const ScriptOriginOptions & GetResourceOptions ( ) const

Definition at line 11577 of file v8.h.

Friends And Related Function Documentation

◆ ScriptCompiler

friend class ScriptCompiler
friend

Definition at line 1874 of file v8.h.


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