v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UnboundScript Class Reference

#include <v8.h>

Public Member Functions

Local< ScriptBindToCurrentContext ()
 
int GetId ()
 
Handle< ValueGetScriptName ()
 
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 1015 of file v8.h.

Member Function Documentation

Local< Script > BindToCurrentContext ( )

Binds the script to the currently entered context.

Definition at line 1627 of file api.cc.

References Handle< T >::cast(), SharedFunctionInfo::cast(), and Utils::OpenHandle().

Referenced by TEST(), and THREADED_TEST().

int GetId ( )
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.

Definition at line 1655 of file api.cc.

References Handle< T >::cast(), Script::cast(), v8::internal::GetScriptLineNumber(), LOG_API, ON_BAILOUT, and Utils::OpenHandle().

Handle< Value > GetScriptName ( )

Field Documentation

const int kNoScriptId = 0
static

Definition at line 1031 of file v8.h.

Referenced by Function::ScriptId().


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