/// Create a new JSTime instance from `options`.
Create a new JSTime instance from `options`.
Create a new JSTime instance from ` options ` .
pub fn new(options: Options) -> JSTime {
        let mut create_params =
            v8::Isolate::create_params().external_references(&**builtins::EXTERNAL_REFERENCES);
        if let Some(snapshot) = options.snapshot {
            create_params = create_params.snapshot_blob(snapshot);
        }
        let mut isolate = v8::Isolate::new(create_params);
        // isolate.set_microtasks_policy(v8::MicrotasksPolicy::Explicit);
        JSTime::create(options, isolate)
    }
pub fn new ( options : Options ) -> JSTime { let mut create_params = v8 :: Isolate :: create_params ( ) . external_references ( & * * builtins :: EXTERNAL_REFERENCES ) ; if let Some ( snapshot ) = options . snapshot { create_params = create_params . snapshot_blob ( snapshot ) ; } let mut isolate = v8 :: Isolate :: new ( create_params ) ; // isolate.set_microtasks_policy(v8::MicrotasksPolicy::Explicit); JSTime :: create ( options , isolate ) }
Create a new JSTime instance from `options`.
Create a new JSTime instance from ` options ` .
options
Options