v8  4.5.103 (node 4.8.7)
V8 is Google's open source JavaScript engine
UnboundScript Class Reference

#include <v8.h>

Public Member Functions

Local< ScriptBindToCurrentContext ()
 
int GetId ()
 
Local< ValueGetScriptName ()
 
Local< ValueGetSourceURL ()
 
Local< ValueGetSourceMappingURL ()
 
int GetLineNumber (int code_pos)
 

Static Public Attributes

static const int kNoScriptId = 0
 

Detailed Description

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

Definition at line 1051 of file v8.h.

Member Function Documentation

◆ BindToCurrentContext()

Local<Script> BindToCurrentContext ( )

Binds the script to the currently entered context.

◆ GetId()

int GetId ( )

Referenced by Script::V8_DEPRECATED().

◆ GetLineNumber()

int GetLineNumber ( int  code_pos)

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 1076 of file v8.h.


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