diff options
Diffstat (limited to 'cli/worker.rs')
-rw-r--r-- | cli/worker.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/worker.rs b/cli/worker.rs index cdbf8c42d..46e7eeaff 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -209,6 +209,19 @@ impl Future for Worker { } } +impl Deref for Worker { + type Target = deno_core::EsIsolate; + fn deref(&self) -> &Self::Target { + &self.isolate + } +} + +impl DerefMut for Worker { + fn deref_mut(&mut self) -> &mut Self::Target { + &mut self.isolate + } +} + /// This worker is created and used by Deno executable. /// /// It provides ops available in the `Deno` namespace. |