Struct v8::UnboundScript
source · #[repr(C)]pub struct UnboundScript(_);
Expand description
A compiled JavaScript script, not yet tied to a Context.
Implementations§
source§impl UnboundScript
impl UnboundScript
sourcepub fn bind_to_current_context<'s>(
&self,
scope: &mut HandleScope<'s>
) -> Local<'s, Script>
pub fn bind_to_current_context<'s>(
&self,
scope: &mut HandleScope<'s>
) -> Local<'s, Script>
Binds the script to the currently entered context.
sourcepub fn create_code_cache(&self) -> Option<UniqueRef<CachedData<'static>>>
pub fn create_code_cache(&self) -> Option<UniqueRef<CachedData<'static>>>
Creates and returns code cache for the specified unbound_script. This will return nullptr if the script cannot be serialized. The CachedData returned by this function should be owned by the caller.