v8  9.4.146 (node 16.15.0)
V8 is Google's open source JavaScript engine
ScriptOrigin Class Reference

#include <v8.h>

Public Member Functions

V8_INLINE ScriptOrigin (Local< Value > resource_name, Local< Integer > resource_line_offset, Local< Integer > resource_column_offset, Local< Boolean > resource_is_shared_cross_origin=Local< Boolean >(), Local< Integer > script_id=Local< Integer >(), Local< Value > source_map_url=Local< Value >(), Local< Boolean > resource_is_opaque=Local< Boolean >(), Local< Boolean > is_wasm=Local< Boolean >(), Local< Boolean > is_module=Local< Boolean >(), Local< PrimitiveArray > host_defined_options=Local< PrimitiveArray >())
 
V8_INLINE ScriptOrigin (Local< Value > resource_name, int resource_line_offset=0, int resource_column_offset=0, bool resource_is_shared_cross_origin=false, int script_id=-1, Local< Value > source_map_url=Local< Value >(), bool resource_is_opaque=false, bool is_wasm=false, bool is_module=false, Local< PrimitiveArray > host_defined_options=Local< PrimitiveArray >())
 
V8_INLINE ScriptOrigin (Isolate *isolate, Local< Value > resource_name, int resource_line_offset=0, int resource_column_offset=0, bool resource_is_shared_cross_origin=false, int script_id=-1, Local< Value > source_map_url=Local< Value >(), bool resource_is_opaque=false, bool is_wasm=false, bool is_module=false, Local< PrimitiveArray > host_defined_options=Local< PrimitiveArray >())
 
V8_INLINE Local< ValueResourceName () const
 
V8_INLINE Local< IntegerResourceLineOffset () const
 
V8_INLINE Local< IntegerResourceColumnOffset () const
 
V8_INLINE Local< IntegerScriptID () const
 
V8_INLINE int LineOffset () const
 
V8_INLINE int ColumnOffset () const
 
V8_INLINE int ScriptId () const
 
V8_INLINE Local< ValueSourceMapUrl () const
 
V8_INLINE Local< PrimitiveArrayHostDefinedOptions () const
 
V8_INLINE ScriptOriginOptions Options () const
 

Detailed Description

The origin, within a file, of a script.

Definition at line 1442 of file v8.h.

Constructor & Destructor Documentation

◆ ScriptOrigin() [1/3]

ScriptOrigin ( Local< Value resource_name,
Local< Integer resource_line_offset,
Local< Integer resource_column_offset,
Local< Boolean resource_is_shared_cross_origin = Local<Boolean>(),
Local< Integer script_id = Local<Integer>(),
Local< Value source_map_url = Local<Value>(),
Local< Boolean resource_is_opaque = Local<Boolean>(),
Local< Boolean is_wasm = Local<Boolean>(),
Local< Boolean is_module = Local<Boolean>(),
Local< PrimitiveArray host_defined_options = Local<PrimitiveArray>() 
)
explicit

◆ ScriptOrigin() [2/3]

ScriptOrigin ( Local< Value resource_name,
int  resource_line_offset = 0,
int  resource_column_offset = 0,
bool  resource_is_shared_cross_origin = false,
int  script_id = -1,
Local< Value source_map_url = Local<Value>(),
bool  resource_is_opaque = false,
bool  is_wasm = false,
bool  is_module = false,
Local< PrimitiveArray host_defined_options = Local<PrimitiveArray>() 
)
explicit

Definition at line 11498 of file v8.h.

References Isolate::GetCurrent(), and ScriptOriginOptions::ScriptOriginOptions().

◆ ScriptOrigin() [3/3]

ScriptOrigin ( Isolate isolate,
Local< Value resource_name,
int  resource_line_offset = 0,
int  resource_column_offset = 0,
bool  resource_is_shared_cross_origin = false,
int  script_id = -1,
Local< Value source_map_url = Local<Value>(),
bool  resource_is_opaque = false,
bool  is_wasm = false,
bool  is_module = false,
Local< PrimitiveArray host_defined_options = Local<PrimitiveArray>() 
)
explicit

Definition at line 11512 of file v8.h.

References ScriptOriginOptions::ScriptOriginOptions().

Referenced by ScriptOrigin::ScriptOrigin().

Member Function Documentation

◆ ColumnOffset()

int ColumnOffset ( ) const

Definition at line 11547 of file v8.h.

Referenced by ScriptCompiler::Source::Source().

◆ HostDefinedOptions()

Local< PrimitiveArray > HostDefinedOptions ( ) const

Definition at line 11529 of file v8.h.

Referenced by ScriptCompiler::Source::Source().

◆ LineOffset()

int LineOffset ( ) const

Definition at line 11545 of file v8.h.

Referenced by ScriptCompiler::Source::Source().

◆ Options()

V8_INLINE ScriptOriginOptions Options ( ) const
inline

Definition at line 1485 of file v8.h.

Referenced by ScriptCompiler::Source::Source().

◆ ResourceColumnOffset()

Local< Integer > ResourceColumnOffset ( ) const

Definition at line 11537 of file v8.h.

References Integer::New().

◆ ResourceLineOffset()

Local< Integer > ResourceLineOffset ( ) const

Definition at line 11533 of file v8.h.

References Integer::New().

◆ ResourceName()

Local< Value > ResourceName ( ) const

Definition at line 11527 of file v8.h.

Referenced by ScriptCompiler::Source::Source().

◆ ScriptID()

Local< Integer > ScriptID ( ) const

Definition at line 11541 of file v8.h.

References Integer::New().

◆ ScriptId()

int ScriptId ( ) const

Definition at line 11549 of file v8.h.

◆ SourceMapUrl()

Local< Value > SourceMapUrl ( ) const

Definition at line 11551 of file v8.h.

Referenced by ScriptCompiler::Source::Source().


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