v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::UnboundScript Class Reference

#include <v8-script.h>

Inheritance diagram for v8::UnboundScript:
Collaboration diagram for v8::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 v8::Data
bool IsValue () const
 
bool IsModule () const
 
bool IsModuleRequest () 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 > v8::UnboundScript::BindToCurrentContext ( )

Binds the script to the currently entered context.

Definition at line 1764 of file api.cc.

Here is the call graph for this function:

◆ GetColumnNumber()

int v8::UnboundScript::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.

Definition at line 1803 of file api.cc.

Here is the call graph for this function:

◆ GetId()

int v8::UnboundScript::GetId ( ) const

Definition at line 1777 of file api.cc.

Here is the call graph for this function:

◆ GetLineNumber()

int v8::UnboundScript::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.

Definition at line 1786 of file api.cc.

Here is the call graph for this function:

◆ GetScriptName()

Local< Value > v8::UnboundScript::GetScriptName ( )

Definition at line 1820 of file api.cc.

Here is the call graph for this function:

◆ GetSourceMappingURL()

Local< Value > v8::UnboundScript::GetSourceMappingURL ( )

Data read from magic sourceMappingURL comments.

Definition at line 1852 of file api.cc.

Here is the call graph for this function:

◆ GetSourceURL()

Local< Value > v8::UnboundScript::GetSourceURL ( )

Data read from magic sourceURL comments.

Definition at line 1836 of file api.cc.

Here is the call graph for this function:

Member Data Documentation

◆ kNoScriptId

const int v8::UnboundScript::kNoScriptId = 0
static

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


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