v8  3.28.71 (node 0.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

◆ Compile() [1/2]

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

◆ Compile() [2/2]

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

A shorthand for ScriptCompiler::Compile().

◆ GetUnboundScript()

Local<UnboundScript> GetUnboundScript ( )

Returns the corresponding context-unbound script.

Referenced by Script::V8_DEPRECATED().

◆ Run()

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()

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

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