Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
v8::UnboundScript Class Reference

#include <v8-script.h>

Inheritance diagram for v8::UnboundScript:
[legend]
Collaboration diagram for v8::UnboundScript:
[legend]

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 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.

Member Function Documentation

◆ BindToCurrentContext()

Local< Script > v8::UnboundScript::BindToCurrentContext ( )

Binds the script to the currently entered context.

◆ 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.

◆ GetId()

int v8::UnboundScript::GetId ( ) const

◆ 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.

◆ GetScriptName()

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

◆ GetSourceMappingURL()

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

Data read from magic sourceMappingURL comments.

◆ GetSourceURL()

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

Data read from magic sourceURL comments.

Member Data Documentation

◆ kNoScriptId

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

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