v8 12.4.254 (node 22.4.1)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
UnboundScript Class Reference

#include <v8-script.h>

Inheritance diagram for UnboundScript:
Collaboration diagram for UnboundScript:

Public Member Functions

Local< ScriptBindToCurrentContext ()
 
int GetId () const
 
Local< ValueGetScriptName ()
 
Local< ValueGetSourceURL ()
 
Local< ValueGetSourceMappingURL ()
 
int GetLineNumber (int code_pos=0)
 
int GetColumnNumber (int code_pos=0)
 
- Public Member Functions inherited from Data
bool IsValue () const
 
bool IsModule () const
 
bool IsFixedArray () const
 
bool IsPrivate () const
 
bool IsObjectTemplate () const
 
bool IsFunctionTemplate () const
 
bool IsContext () const
 

Static Public Attributes

static const int kNoScriptId = 0
 

Detailed Description

A compiled JavaScript script, not yet tied to a Context.

Definition at line 60 of file v8-script.h.

Member Function Documentation

◆ BindToCurrentContext()

Local< Script > BindToCurrentContext ( )

Binds the script to the currently entered context.

◆ GetColumnNumber()

int GetColumnNumber ( int  code_pos = 0)

Returns zero based column number of the code_pos location in the script. -1 will be returned if no information available.

◆ GetId()

int GetId ( ) const

◆ GetLineNumber()

int GetLineNumber ( int  code_pos = 0)

Returns zero based line number of the code_pos location in the script. -1 will be returned if no information available.

◆ GetScriptName()

Local< Value > GetScriptName ( )

◆ GetSourceMappingURL()

Local< Value > GetSourceMappingURL ( )

Data read from magic sourceMappingURL comments.

◆ GetSourceURL()

Local< Value > GetSourceURL ( )

Data read from magic sourceURL comments.

Field Documentation

◆ kNoScriptId

const int kNoScriptId = 0
static

Definition at line 91 of file v8-script.h.


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