/// Execute arbitrary JS code under the runtime environment.
Execute arbitrary JS code under the runtime environment.
Execute arbitrary JS code under the runtime environment .
pub fn execute(&mut self, source: &str) {
        let scope = &mut HandleScope::with_context(&mut self.isolate, self.context.clone());
        let code = String::new(scope, source).unwrap();
        let script = Script::compile(scope, code, None).unwrap();
        script.run(scope);
    }
pub fn execute ( & mut self , source : & str ) { let scope = & mut HandleScope :: with_context ( & mut self . isolate , self . context . clone ( ) ) ; let code = String :: new ( scope , source ) . unwrap ( ) ; let script = Script :: compile ( scope , code , None ) . unwrap ( ) ; script . run ( scope ) ; }
Execute arbitrary JS code under the runtime environment.
Execute arbitrary JS code under the runtime environment .
&mut self
source
&str