#[repr(C)]pub struct Script(_);
Expand description
A compiled JavaScript script, tied to a Context which was active when the script was compiled.
Implementations§
source§impl Script
impl Script
sourcepub 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().
sourcepub fn get_unbound_script<'s>(
&self,
scope: &mut HandleScope<'s>
) -> Local<'s, UnboundScript>
pub fn get_unbound_script<'s>(
&self,
scope: &mut HandleScope<'s>
) -> Local<'s, UnboundScript>
Returns the corresponding context-unbound script.