v8  3.28.71(node0.12.18)
V8 is Google's open source JavaScript engine
Script Class Reference

#include <v8.h>

Public Member Functions

Local< ValueRun ()
 
Local< UnboundScriptGetUnboundScript ()
 
 V8_DEPRECATED ("Use GetUnboundScript()->GetId()", int GetId())
 

Static Public Member Functions

static Local< ScriptCompile (Handle< String > source, ScriptOrigin *origin=NULL)
 
static Local< ScriptCompile (Handle< String > source, Handle< String > file_name)
 

Detailed Description

A compiled JavaScript script, tied to a Context which was active when the script was compiled.

Definition at line 983 of file v8.h.

Member Function Documentation

static Local<Script> Compile ( Handle< String source,
ScriptOrigin origin = NULL 
)
static

A shorthand for ScriptCompiler::Compile().

static Local<Script> Compile ( Handle< String source,
Handle< String file_name 
)
static
Local<UnboundScript> GetUnboundScript ( )

Returns the corresponding context-unbound script.

Referenced by Script::V8_DEPRECATED().

Local<Value> Run ( )

Runs the script returning the resulting value. It will be run in the context in which it was created (ScriptCompiler::CompileBound or UnboundScript::BindToGlobalContext()).

V8_DEPRECATED ( "Use GetUnboundScript()->GetId()"  ,
int   GetId() 
)
inline

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