summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2024-02-10 19:08:02 -0700
committerGitHub <noreply@github.com>2024-02-10 19:08:02 -0700
commit26d9b2f3174030138a13bdb60c6c76a38fa0df19 (patch)
treebe524bf55f7cb0d7e7fdd761e4cd045d5dbf6f31 /cli
parentf5e46c9bf2f50d66a953fa133161fc829cecff06 (diff)
chore: deno_core bump (#22379)
- Updates to V8 12.1.285.27 https://github.com/denoland/rusty_v8/pull/1383 - Swaps Box for Rc for `source_map_getter`
Diffstat (limited to 'cli')
-rw-r--r--cli/module_loader.rs4
-rw-r--r--cli/standalone/mod.rs2
-rw-r--r--cli/worker.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/cli/module_loader.rs b/cli/module_loader.rs
index 4b120796b..84ced345f 100644
--- a/cli/module_loader.rs
+++ b/cli/module_loader.rs
@@ -443,8 +443,8 @@ impl ModuleLoaderFactory for CliModuleLoaderFactory {
)
}
- fn create_source_map_getter(&self) -> Option<Box<dyn SourceMapGetter>> {
- Some(Box::new(CliSourceMapGetter {
+ fn create_source_map_getter(&self) -> Option<Rc<dyn SourceMapGetter>> {
+ Some(Rc::new(CliSourceMapGetter {
shared: self.shared.clone(),
}))
}
diff --git a/cli/standalone/mod.rs b/cli/standalone/mod.rs
index 4049d6709..e25b61c31 100644
--- a/cli/standalone/mod.rs
+++ b/cli/standalone/mod.rs
@@ -280,7 +280,7 @@ impl ModuleLoaderFactory for StandaloneModuleLoaderFactory {
fn create_source_map_getter(
&self,
- ) -> Option<Box<dyn deno_core::SourceMapGetter>> {
+ ) -> Option<Rc<dyn deno_core::SourceMapGetter>> {
None
}
}
diff --git a/cli/worker.rs b/cli/worker.rs
index e5a750597..e897c1a86 100644
--- a/cli/worker.rs
+++ b/cli/worker.rs
@@ -73,7 +73,7 @@ pub trait ModuleLoaderFactory: Send + Sync {
dynamic_permissions: PermissionsContainer,
) -> Rc<dyn ModuleLoader>;
- fn create_source_map_getter(&self) -> Option<Box<dyn SourceMapGetter>>;
+ fn create_source_map_getter(&self) -> Option<Rc<dyn SourceMapGetter>>;
}
// todo(dsherret): this is temporary and we should remove this