V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
|
#include <v8.h>
Public Member Functions | |
V8_WARN_UNUSED_RESULT MaybeLocal< Value > | Run (Local< Context > context) |
Local< UnboundScript > | GetUnboundScript () |
Static Public Member Functions | |
static V8_WARN_UNUSED_RESULT MaybeLocal< Script > | Compile (Local< Context > context, Local< String > source, ScriptOrigin *origin=nullptr) |
A compiled JavaScript script, tied to a Context which was active when the script was compiled.
|
static |
A shorthand for ScriptCompiler::Compile().
Local< UnboundScript > v8::Script::GetUnboundScript | ( | ) |
MaybeLocal< Value > v8::Script::Run | ( | Local< Context > | context | ) |
Runs the script returning the resulting value. It will be run in the context in which it was created (ScriptCompiler::CompileBound or UnboundScript::BindToCurrentContext()).