v8
4.5.103 (node 4.8.7)
V8 is Google's open source JavaScript engine
|
#include <v8.h>
Public Member Functions | |
V8_DEPRECATE_SOON ("Use maybe version", Local< Value > Run()) | |
V8_WARN_UNUSED_RESULT MaybeLocal< Value > | Run (Local< Context > context) |
Local< UnboundScript > | GetUnboundScript () |
V8_DEPRECATED ("Use GetUnboundScript()->GetId()", int GetId()) | |
Static Public Member Functions | |
static | V8_DEPRECATE_SOON ("Use maybe version", Local< Script > Compile(Local< String > source, ScriptOrigin *origin=nullptr)) |
static V8_WARN_UNUSED_RESULT MaybeLocal< Script > | Compile (Local< Context > context, Local< String > source, ScriptOrigin *origin=nullptr) |
static Local< Script > | V8_DEPRECATE_SOON ("Use maybe version", Compile(Local< String > source, Local< String > file_name)) |
A compiled JavaScript script, tied to a Context which was active when the script was compiled.
|
static |
Local<UnboundScript> GetUnboundScript | ( | ) |
Returns the corresponding context-unbound script.
Referenced by Script::V8_DEPRECATED().
V8_WARN_UNUSED_RESULT MaybeLocal<Value> Run | ( | Local< Context > | context | ) |
|
static |
|
static |
A shorthand for ScriptCompiler::Compile().
Runs the script returning the resulting value. It will be run in the context in which it was created (ScriptCompiler::CompileBound or UnboundScript::BindToCurrentContext()).
|
inline |
Definition at line 1114 of file v8.h.
References UnboundScript::GetId(), Script::GetUnboundScript(), and Local< T >::operator->().