summaryrefslogtreecommitdiff
path: root/cli/worker.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-09-06 16:50:49 +0200
committerGitHub <noreply@github.com>2020-09-06 16:50:49 +0200
commit803bdd37c759ee859d89e7e957d2764d0db72af4 (patch)
tree0c055191e134803b893af818f97f8b38eba8142f /cli/worker.rs
parentc821e8f2f1fb8ad5e9eb00854277cafc8c80b2f5 (diff)
refactor(core): merge CoreIsolate and EsIsolate (#7370)
Diffstat (limited to 'cli/worker.rs')
-rw-r--r--cli/worker.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/worker.rs b/cli/worker.rs
index 3aaf92f48..ac0ef0d26 100644
--- a/cli/worker.rs
+++ b/cli/worker.rs
@@ -91,7 +91,7 @@ fn create_channels() -> (WorkerChannelsInternal, WorkerHandle) {
/// - `WebWorker`
pub struct Worker {
pub name: String,
- pub isolate: deno_core::EsIsolate,
+ pub isolate: deno_core::CoreIsolate,
pub inspector: Option<Box<DenoInspector>>,
pub state: Rc<State>,
pub waker: AtomicWaker,
@@ -105,7 +105,7 @@ impl Worker {
startup_data: StartupData,
state: &Rc<State>,
) -> Self {
- let mut isolate = deno_core::EsIsolate::new(
+ let mut isolate = deno_core::CoreIsolate::new_with_loader(
state.clone(),
state.clone(),
startup_data,
@@ -235,7 +235,7 @@ impl Future for Worker {
}
impl Deref for Worker {
- type Target = deno_core::EsIsolate;
+ type Target = deno_core::CoreIsolate;
fn deref(&self) -> &Self::Target {
&self.isolate
}