Struct v8::Script [−][src]
#[repr(C)]pub struct Script(_);
Expand description
A compiled JavaScript script, tied to a Context which was active when the script was compiled.
Implementations
pub fn compile<'s>(
scope: &mut HandleScope<'s>,
source: Local<'_, String>,
origin: Option<&ScriptOrigin<'_>>
) -> Option<Local<'s, Script>>
pub fn compile<'s>(
scope: &mut HandleScope<'s>,
source: Local<'_, String>,
origin: Option<&ScriptOrigin<'_>>
) -> Option<Local<'s, Script>>
A shorthand for ScriptCompiler::Compile().
Returns the corresponding context-unbound script.
Methods from Deref<Target = Data>
Returns the V8 hash value for this value. The current implementation uses a hidden property to store the identity hash on some object types.
The return value will never be 0. Also, it is not guaranteed to be unique.
Returns true if this data is a Private
.
Returns true if this data is an ObjectTemplate
Returns true if this data is a FunctionTemplate.