summaryrefslogtreecommitdiff
path: root/cli/worker.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-04-21 09:48:44 -0400
committerGitHub <noreply@github.com>2020-04-21 09:48:44 -0400
commitcc1720132a9c875d377c559d301bccdda2fb71c1 (patch)
treebba93c08ab0eaea148e754381b5a668f1a88ca28 /cli/worker.rs
parentef6ee25e09c902e1f9d89a40cf05660432e7143c (diff)
Move resource_table from deno::State to deno_core::Isolate (#4834)
Diffstat (limited to 'cli/worker.rs')
-rw-r--r--cli/worker.rs13
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.