Public Member Functions | Static Public Member Functions | List of all members
v8::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.

Member Function Documentation

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

A shorthand for ScriptCompiler::Compile().

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

Returns the corresponding context-unbound script.

Local<Value> v8::Script::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()).

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