mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 10:33:54 +00:00
Move resource_table from deno::State to deno_core::Isolate (#4834)
This commit is contained in:
parent
ef6ee25e09
commit
cc1720132a
20 changed files with 298 additions and 263 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue