From ad9fd589d4131e847721323a730ba91161f1b95b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 7 Jan 2020 12:45:44 +0100 Subject: core: factor out EsIsolate from Isolate (#3613) --- cli/js.rs | 4 ++-- cli/worker.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'cli') diff --git a/cli/js.rs b/cli/js.rs index 09fe3f8fa..134a57503 100644 --- a/cli/js.rs +++ b/cli/js.rs @@ -28,7 +28,7 @@ pub fn get_asset(name: &str) -> Option<&'static str> { #[test] fn cli_snapshot() { - let mut isolate = deno_core::Isolate::new( + let mut isolate = deno_core::EsIsolate::new( deno_core::StartupData::Snapshot(CLI_SNAPSHOT), false, ); @@ -45,7 +45,7 @@ fn cli_snapshot() { #[test] fn compiler_snapshot() { - let mut isolate = deno_core::Isolate::new( + let mut isolate = deno_core::EsIsolate::new( deno_core::StartupData::Snapshot(COMPILER_SNAPSHOT), false, ); diff --git a/cli/worker.rs b/cli/worker.rs index e25aa8018..cd8d6c8ae 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -35,7 +35,7 @@ pub struct WorkerChannels { #[derive(Clone)] pub struct Worker { pub name: String, - isolate: Arc>>, + isolate: Arc>>, pub state: ThreadSafeState, external_channels: Arc>, } @@ -48,7 +48,7 @@ impl Worker { external_channels: WorkerChannels, ) -> Self { let isolate = - Arc::new(Mutex::new(deno_core::Isolate::new(startup_data, false))); + Arc::new(Mutex::new(deno_core::EsIsolate::new(startup_data, false))); { let mut i = isolate.lock().unwrap(); let op_registry = i.op_registry.clone(); -- cgit v1.2.3